/* ============================================================
   Tijo labs — feuille de styles du portfolio
   Extrait des styles inline de « index.html » (format .dc.html).
   La couleur d'accent est pilotée par la variable --accent
   (posée en JS via applyAccent) ; toujours l'utiliser plutôt
   qu'une valeur codée en dur.
   ============================================================ */

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #FBF7F1;
  color: #3B342E;
  font-family: "Didact Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #C07E4A; text-decoration: none; }
a:hover { color: #9c6234; }
::selection { background: color-mix(in srgb, #DD9A66 40%, #FBF7F1); color: #3B342E; }

.tijo-scroll::-webkit-scrollbar { height: 8px; }
.tijo-scroll::-webkit-scrollbar-thumb { background: rgba(59,52,46,.14); border-radius: 999px; }
.tijo-scroll::-webkit-scrollbar-track { background: transparent; }

/* ---------- Keyframes ---------- */
@keyframes tijoBackdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes tijoPanel { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tijoMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tijoPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .45; } }
@keyframes tijoWordIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tijoFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tijoBlob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(24px,-30px) scale(1.12); } 66% { transform: translate(-20px,18px) scale(.92); } }
@keyframes tijoShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes tijoSpinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes tijoPop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Primitives partagées ---------- */
.tijo-root { position: relative; overflow-x: clip; --accent: #DD9A66; }
.tijo-import { position: absolute; width: 0; height: 0; overflow: hidden; }
.tijo-layer { position: relative; z-index: 1; }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent, #DD9A66); letter-spacing: 1px; text-transform: uppercase; }
.section-title { font-family: 'Lora', serif; font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 10px 0 0; letter-spacing: -.4px; }
.section-title--tight { line-height: 1.05; }
.accent-em { font-style: italic; color: var(--accent, #DD9A66); }

/* Conteneurs de section réutilisés */
.section-inner { max-width: 1180px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 40px); }
.section-narrow { max-width: 1080px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 40px); }
.section-alt { background: #fff; border-top: 1px solid rgba(59,52,46,.06); border-bottom: 1px solid rgba(59,52,46,.06); }

/* Blocs déroulants (équipe + FAQ) */
.collapse { display: grid; transition: grid-template-rows .4s cubic-bezier(.2,.8,.3,1); }
.collapse-inner { overflow: hidden; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(20px, 5vw, 64px); background: rgba(251,247,241,.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(59,52,46,.07); transition: box-shadow .35s ease, padding .35s ease, background .35s ease; }
/* Légère élévation de la nav dès qu'on scrolle (classe posée sur <body> en JS) */
.is-scrolled .nav { box-shadow: 0 8px 30px rgba(59,52,46,.09); background: rgba(251,247,241,.96); padding-top: 11px; padding-bottom: 11px; }
.nav-brand { font-family: 'Lora', serif; font-weight: 400; font-size: 30px; letter-spacing: .5px; color: #3B342E; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(11px, 1.7vw, 24px); flex-wrap: wrap; flex: 1; }
.nav-link { color: #6E655C; font-weight: 500; font-size: 15px; }
.nav-actions { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 16px); }
.nav-mobile-actions { display: flex; align-items: center; gap: 10px; }

.lang-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid rgba(59,52,46,.14); color: #6E655C; font-family: inherit; font-weight: 600; font-size: 13px; padding: 8px 13px; border-radius: 999px; transition: transform .2s ease; }
.lang-btn:hover { transform: translateY(-2px); }
.lang-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #DD9A66); }

.nav-cta { background: var(--accent, #DD9A66); color: #fff; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 999px; transition: transform .2s ease, box-shadow .2s ease; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 45%, transparent); }

.burger { cursor: pointer; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(59,52,46,.14); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.burger-bar { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #3B342E; }
.burger-bar--top { transition: transform .3s ease, opacity .3s ease; }
.burger-bar--mid { transition: opacity .3s ease; }
.burger-bar--bot { transition: transform .3s ease; }

.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: #FBF7F1; border-bottom: 1px solid rgba(59,52,46,.09); box-shadow: 0 18px 40px rgba(59,52,46,.12); padding: 12px clamp(20px, 5vw, 40px) 22px; display: flex; flex-direction: column; gap: 2px; animation: tijoWordIn .3s ease; }
.mobile-link { color: #3B342E; font-weight: 500; font-size: 17px; padding: 14px 6px; border-bottom: 1px solid rgba(59,52,46,.06); }
.mobile-link--noborder { border-bottom: none; }
.mobile-cta { margin-top: 12px; text-align: center; background: var(--accent, #DD9A66); color: #fff; font-weight: 600; font-size: 16px; padding: 14px 20px; border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { max-width: 1080px; margin: 0 auto; padding: clamp(60px, 11vw, 130px) clamp(20px, 5vw, 40px) clamp(50px, 8vw, 90px); text-align: center; }
.hero-title { font-family: 'Lora', serif; font-weight: 400; font-size: clamp(2.7rem, 7.5vw, 5.6rem); line-height: 1.02; letter-spacing: -.5px; margin: 26px auto 0; max-width: 15ch; text-wrap: balance; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.6; color: #6E655C; max-width: 44ch; margin: 26px auto 0; text-wrap: pretty; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

.btn-primary { background: var(--accent, #DD9A66); color: #fff; font-weight: 600; font-size: 16px; padding: 15px 30px; border-radius: 999px; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 34%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 44%, transparent); }
.btn-secondary { background: #fff; color: #3B342E; font-weight: 600; font-size: 16px; padding: 15px 30px; border-radius: 999px; border: 1px solid rgba(59,52,46,.12); transition: transform .2s ease; }
.btn-secondary:hover { transform: translateY(-2px); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 14px 0; border-top: 1px solid rgba(59,52,46,.07); border-bottom: 1px solid rgba(59,52,46,.07); background: rgba(255,255,255,.4); }
.marquee-track { display: flex; width: max-content; will-change: transform; animation: tijoMarquee 40s linear infinite; font-family: 'Lora', serif; font-size: 22px; color: #A79C90; }
.marquee-group { display: flex; align-items: center; gap: 60px; padding-right: 60px; }
.marquee-item { display: flex; align-items: center; gap: 60px; white-space: nowrap; }
.marquee-dot { opacity: .4; }

/* ---------- Projets ---------- */
.section-projects { max-width: 1180px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 40px) clamp(40px, 6vw, 70px); }
.projects-head { margin-bottom: 44px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.project-card { cursor: pointer; background: #fff; border: 1px solid rgba(59,52,46,.08); border-radius: 26px; overflow: hidden; transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease; box-shadow: 0 4px 18px rgba(59,52,46,.05); will-change: transform; }
.project-card:hover { box-shadow: 0 22px 50px rgba(59,52,46,.14); }
.project-cover { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.project-cover-fill { position: absolute; inset: 0; }
.project-blob1 { position: absolute; width: 150px; height: 150px; border-radius: 50%; opacity: .8; top: -30px; right: -20px; }
.project-blob2 { position: absolute; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.5); bottom: -18px; left: 24px; }
.project-initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Lora', serif; font-style: italic; font-size: 58px; color: rgba(59,52,46,.7); }
.project-type { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.9); padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #3B342E; z-index: 2; }
.project-body { padding: 22px 24px 24px; }
.project-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.project-name { font-family: 'Lora', serif; font-weight: 400; font-size: 25px; margin: 0; letter-spacing: -.2px; }
.project-year { font-size: 13px; color: #A79C90; font-weight: 500; }
.project-blurb { color: #6E655C; font-size: 15px; line-height: 1.5; margin: 8px 0 16px; }
.project-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--accent, #DD9A66); }

/* ---------- Services ---------- */
.services-intro { max-width: 46ch; margin-bottom: 44px; }
.services-sub { color: #6E655C; font-size: 16px; line-height: 1.6; margin: 16px 0 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 4vw, 48px); align-items: stretch; }
.services-list { display: flex; flex-direction: column; gap: 4px; }
.service-row { cursor: pointer; text-align: left; border: none; border-radius: 18px; padding: 15px 18px; display: flex; align-items: center; gap: 14px; transition: background .3s ease, transform .2s ease; }
.service-row:hover { transform: translateX(4px); }
.service-badge { width: 40px; height: 40px; flex: none; border-radius: 13px; display: flex; align-items: center; justify-content: center; transition: background .3s ease; }
.service-title { font-family: 'Lora', serif; font-weight: 400; font-size: 22px; letter-spacing: -.2px; transition: color .3s ease; }
.services-panel { position: relative; background: #FBF7F1; border: 1px solid rgba(59,52,46,.07); border-radius: 28px; padding: clamp(28px, 4vw, 42px); overflow: hidden; min-height: 300px; display: flex; align-items: center; }
.services-panel-inner { position: relative; width: 100%; }

/* ---------- Processus ---------- */
.process-head { text-align: center; max-width: 44ch; margin: 0 auto 52px; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 48px); max-width: 900px; margin: 0 auto; }
.process-col { position: relative; padding-left: 4px; }
.process-rail { position: absolute; left: 28px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 20%, #FBF7F1); }
.process-fill { position: absolute; left: 28px; top: 12px; width: 3px; height: 0; border-radius: 3px; background: var(--accent, #DD9A66); transition: height .2s linear; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent); }
.process-steps { display: flex; flex-direction: column; gap: 22px; }
.process-step { position: relative; display: flex; align-items: flex-start; gap: 20px; }
.process-dot { position: relative; z-index: 1; flex: none; width: 54px; height: 54px; border-radius: 50%; background: #FBF7F1; color: var(--accent, #DD9A66); display: flex; align-items: center; justify-content: center; font-family: 'Lora', serif; font-size: 24px; border: 3px solid color-mix(in srgb, var(--accent) 30%, #FBF7F1); transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease; }
.process-card { flex: 1; background: #fff; border: 1px solid rgba(59,52,46,.08); border-radius: 22px; padding: 18px 22px; box-shadow: 0 4px 16px rgba(59,52,46,.04); transition: transform .25s ease, box-shadow .25s ease; }
.process-card:hover { transform: translateX(4px); box-shadow: 0 14px 32px rgba(59,52,46,.1); }
.process-title { font-family: 'Lora', serif; font-weight: 400; font-size: 21px; margin: 0 0 5px; letter-spacing: -.2px; }
.process-desc { color: #6E655C; font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ---------- Tarifs ---------- */
/* Le titre porte lui-même sa mesure : un `ch` posé ICI se calculerait sur la police du
   conteneur (~16px) et non sur celle du titre (jusqu'à 54px) — c'est ce qui l'étranglait
   à ~377px et le cassait en 4 lignes. 18ch (sur le titre) garde « Des formules claires, »
   sur la 1re ligne et renvoie « pensées pour vous » à la 2e. Sur mobile, c'est la largeur
   de l'écran qui limite (< 18ch), donc rien ne change là-bas. */
.pricing-head { text-align: center; margin: 0 auto 20px; }
.pricing-head .section-title { max-width: 18ch; margin: 10px auto 0; text-wrap: balance; }
.pricing-note { text-align: center; color: #8a7f74; font-size: 14px; line-height: 1.55; max-width: 62ch; margin: 16px auto 48px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; align-items: stretch; }
.pricing-card { position: relative; display: flex; flex-direction: column; border-radius: 28px; padding: 34px 30px; transition: transform .25s ease; }
.pricing-card:hover { transform: translateY(-6px); }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--accent, #DD9A66); font-weight: 700; font-size: 12.5px; padding: 6px 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(59,52,46,.12); white-space: nowrap; }
.pricing-name { font-family: 'Lora', serif; font-weight: 400; font-size: 27px; }
.pricing-pitch { font-size: 14px; margin-top: 4px; }
.pricing-price-row { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.pricing-price { font-family: 'Lora', serif; font-size: 40px; line-height: 1; }
.pricing-currency { font-size: 15px; }
.pricing-estimation { font-size: 13px; margin-bottom: 24px; }
.pricing-features { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.pricing-feature { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.pricing-check { font-weight: 700; }
.pricing-cta { margin-top: auto; text-align: center; font-weight: 600; font-size: 15px; padding: 13px; border-radius: 999px; transition: transform .2s ease; }
.pricing-cta:hover { transform: translateY(-2px); }

/* ---------- Équipe ---------- */
.team-head { text-align: center; max-width: 40ch; margin: 0 auto 56px; }
.team-sub { color: #6E655C; font-size: 16px; line-height: 1.6; margin: 18px 0 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.team-card { background: #fff; border-radius: 26px; padding: 44px 34px 32px; min-height: 460px; border: 1px solid rgba(59,52,46,.06); display: flex; flex-direction: column; }
.team-avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: 'Lora', serif; font-style: italic; font-size: 36px; color: #3B342E; }
.team-name { font-family: 'Lora', serif; font-weight: 400; font-size: 27px; margin: 20px 0 2px; letter-spacing: -.2px; }
.team-role { font-weight: 600; font-size: 14px; color: var(--accent, #DD9A66); text-transform: uppercase; letter-spacing: .6px; }
.team-bio { color: #6E655C; font-size: 15.5px; line-height: 1.65; margin: 16px 0 0; }
.team-pill { cursor: pointer; margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; border: none; font-family: inherit; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 999px; transition: background .3s ease, transform .2s ease; }
.team-pill:hover { transform: translateY(-2px); }
.team-pill-arrow { display: inline-block; transition: transform .35s ease; }
.team-quote { margin-top: 16px; background: #FBF7F1; border: 1px solid rgba(59,52,46,.07); border-radius: 18px; padding: 18px 20px; display: flex; gap: 13px; align-items: flex-start; }
.team-quote-mark { font-family: 'Lora', serif; font-style: italic; font-size: 30px; line-height: .8; color: var(--accent, #DD9A66); }
.team-quote-text { margin: 0; color: #6E655C; font-size: 14.5px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-head { text-align: center; margin: 0 auto 44px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 26px; align-items: start; min-height: 560px; align-content: start; }
.faq-col { display: flex; flex-direction: column; gap: 18px; }
.faq-item { display: flex; flex-direction: column; gap: 10px; }
.faq-q { cursor: pointer; width: 100%; border: none; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; font-family: inherit; box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 16%, transparent); transition: transform .2s ease; }
.faq-q:hover { transform: translateY(-2px); }
.faq-q-text { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.faq-badge { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 400; line-height: 1; transition: transform .35s ease; }
.faq-answer-align { display: flex; }
.faq-answer { max-width: 96%; margin: 4px 6px 12px; background: #fff; border: 1px solid rgba(59,52,46,.08); padding: 16px 20px; box-shadow: 0 3px 14px rgba(59,52,46,.05); }
.faq-answer-text { margin: 0; color: #5c534b; font-size: 15.5px; line-height: 1.65; }

/* ---------- Contact ---------- */
.section-contact { padding: clamp(20px, 5vw, 40px) clamp(20px, 5vw, 40px) clamp(70px, 9vw, 110px); }
.contact-wrap { position: relative; max-width: 720px; margin: 0 auto; }
.contact-head { text-align: center; max-width: 620px; margin: 0 auto; }
.contact-title { font-family: 'Lora', serif; font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; margin: 0; letter-spacing: -.6px; color: #3B342E; }
.contact-title-nowrap { white-space: nowrap; }
.contact-card { position: relative; max-width: 600px; margin: 30px auto 0; background: #fff; border: 1px solid rgba(59,52,46,.08); border-radius: 28px; padding: clamp(22px, 3.5vw, 32px); box-shadow: 0 12px 34px rgba(59,52,46,.06); }
.contact-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.contact-progress-dot { flex: 1; height: 6px; border-radius: 999px; transition: background .4s ease; }
.contact-counter { flex: none; font-size: 12.5px; font-weight: 700; color: #A79C90; margin-left: 4px; }

.chat-msg { margin-bottom: 16px; }
.chat-q-wrap { margin-bottom: 8px; }
.chat-q { border-radius: 4px 16px 16px 16px; padding: 10px 15px; font-size: 14.5px; color: #5c534b; }
.chat-a-row { display: flex; justify-content: flex-end; }
.chat-a { cursor: pointer; border: none; background: var(--accent, #DD9A66); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 15px; font-family: inherit; font-size: 14.5px; font-weight: 600; max-width: 82%; text-align: right; }
.chat-current-wrap { margin-bottom: 14px; }
.chat-current { border-radius: 4px 16px 16px 16px; padding: 12px 16px; font-size: 15.5px; color: #3B342E; font-weight: 500; animation: tijoWordIn .4s ease; }
.chat-input-wrap { animation: tijoWordIn .4s ease; }
.chat-input { width: 100%; border: 2px solid color-mix(in srgb, var(--accent) 26%, #FBF7F1); background: #FBF7F1; border-radius: 15px; padding: 15px 17px; font-family: inherit; font-size: 16px; color: #3B342E; outline: none; }
.chat-textarea { width: 100%; border: 2px solid color-mix(in srgb, var(--accent) 26%, #FBF7F1); background: #FBF7F1; border-radius: 15px; padding: 15px 17px; font-family: inherit; font-size: 16px; color: #3B342E; outline: none; resize: vertical; }
.chat-choices { display: flex; flex-wrap: wrap; gap: 9px; }
.chat-choice { cursor: pointer; border-radius: 999px; padding: 10px 17px; font-family: inherit; font-size: 14px; font-weight: 600; transition: transform .18s ease; }
.chat-choice:hover { transform: translateY(-2px); }
.chat-hint { margin-top: 9px; padding-left: 4px; color: #B4462E; font-size: 13.5px; font-weight: 500; animation: tijoWordIn .25s ease; }
.chat-error { margin-top: 14px; background: #FCEDE9; border: 1px solid #F1C9BE; color: #B4462E; border-radius: 12px; padding: 11px 15px; font-size: 14.5px; font-weight: 500; line-height: 1.5; animation: tijoWordIn .3s ease; }
.chat-controls { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
/* "Voulez-vous nous contacter directement ?" — calé tout à gauche, aligné sur le bord
   gauche du champ de saisie. Son margin-right:auto repousse Retour + Suivant à droite
   en groupe (et fonctionne que le bouton Retour soit affiché ou non). */
.chat-direct { margin-right: auto; text-align: left; font-size: 13.5px; line-height: 1.45; color: #8a7f74; }
.chat-direct-link { display: block; color: var(--accent, #DD9A66); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.chat-direct-link:hover { color: #9c6234; border-bottom-color: currentColor; }
.chat-back { cursor: pointer; border: none; background: transparent; color: #A79C90; font-family: inherit; font-size: 14.5px; font-weight: 600; padding: 8px 6px; }
.chat-next { background: var(--accent, #DD9A66); color: #fff; font-family: inherit; font-weight: 700; font-size: 15.5px; padding: 14px 30px; border: none; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 38%, transparent); }
.chat-next:hover { transform: translateY(-2px); }
.chat-done { text-align: center; padding: 20px 10px 12px; animation: tijoPop .5s cubic-bezier(.2,.9,.3,1.2); }
.chat-check { width: 66px; height: 66px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 26%, #FBF7F1); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 18px; color: var(--accent, #DD9A66); }
.chat-done-title { font-family: 'Lora', serif; font-weight: 400; font-size: 30px; margin: 0 0 8px; }
.chat-done-sub { color: #6E655C; font-size: 15.5px; margin: 0 0 22px; }
.chat-again { cursor: pointer; border: 1px solid rgba(59,52,46,.16); background: #fff; color: #3B342E; font-family: inherit; font-weight: 600; font-size: 14.5px; padding: 11px 22px; border-radius: 999px; }

/* ---------- Footer ---------- */
/* 3 colonnes (marque | tagline | email) : la grille garantit une tagline réellement
   centrée, indépendamment de la largeur des éléments de gauche et de droite. */
.footer { border-top: 1px solid rgba(59,52,46,.08); padding: 34px clamp(20px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 26px; }
.footer-brand { justify-self: start; font-family: 'Lora', serif; font-weight: 400; font-size: 26px; color: #3B342E; }
.footer-meta { justify-self: center; text-align: center; color: #A79C90; font-size: 14px; }
.footer-mail { justify-self: end; color: #6E655C; font-size: 14px; border-bottom: 1px solid rgba(59,52,46,.18); transition: color .2s ease, border-color .2s ease; }
.footer-mail:hover { color: var(--accent, #DD9A66); border-bottom-color: currentColor; }

/* ---------- Overlay détail projet ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(59,52,46,.42); backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: clamp(16px, 5vh, 60px) 16px; overflow-y: auto; animation: tijoBackdrop .25s ease; }
.overlay-panel { width: 100%; max-width: 780px; background: #FBF7F1; border-radius: 30px; overflow: hidden; box-shadow: 0 40px 90px rgba(59,52,46,.3); animation: tijoPanel .35s cubic-bezier(.2,.8,.3,1); }
.overlay-gallery { position: relative; aspect-ratio: 16/9; overflow: hidden; background: color-mix(in srgb, var(--accent) 22%, #FBF7F1); }
.overlay-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.overlay-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: clamp(22px, 5vw, 46px); box-sizing: border-box; }
.overlay-slide-img { width: 100%; height: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(90,58,36,.24); }
.overlay-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); font-size: 18px; cursor: pointer; color: #3B342E; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(59,52,46,.15); }
.overlay-nav--prev { left: 14px; }
.overlay-nav--next { right: 14px; }
.overlay-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); font-size: 18px; cursor: pointer; color: #3B342E; display: flex; align-items: center; justify-content: center; }
.overlay-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.overlay-dot { height: 8px; border-radius: 999px; border: none; cursor: pointer; padding: 0; transition: all .3s ease; }
.overlay-body { padding: clamp(28px, 5vw, 46px); }
.overlay-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.overlay-type { background: color-mix(in srgb, var(--accent) 24%, #FBF7F1); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.overlay-year { color: #A79C90; font-size: 14px; font-weight: 500; }
.overlay-title { font-family: 'Lora', serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); margin: 16px 0 0; letter-spacing: -.4px; }
.overlay-detail { color: #5c534b; font-size: 16.5px; line-height: 1.7; margin: 18px 0 0; }
.overlay-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(59,52,46,.1); }
.overlay-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent, #DD9A66); margin-bottom: 8px; }
.overlay-value { color: #4a423b; font-size: 15px; line-height: 1.5; }
.overlay-scope { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.overlay-scope-item { color: #4a423b; font-size: 15px; display: flex; gap: 8px; }
.overlay-bullet { color: var(--accent, #DD9A66); }
.overlay-cta { display: inline-flex; margin-top: 32px; background: var(--accent, #DD9A66); color: #fff; font-weight: 600; font-size: 15.5px; padding: 14px 28px; border-radius: 999px; }

/* ---------- Responsive ---------- */
/* Footer : on empile marque / tagline / email, centrés. */
@media (max-width: 700px) {
  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-brand, .footer-meta, .footer-mail { justify-self: center; }
}
/* Contact : le lien direct passe sous les boutons plutôt que de les serrer,
   en restant aligné à gauche. */
@media (max-width: 560px) {
  .chat-controls { row-gap: 16px; }
  .chat-direct { order: 3; width: 100%; margin-right: 0; text-align: left; }
  .chat-next { margin-left: auto; }
}
