/* ============================================
   TITANIUM IMMOBILIER — Header & Footer premium PARTAGÉS
   Utilisé sur toutes les pages intérieures pour uniformité
   avec la page d'accueil.
   Variables locales préfixées pour éviter tout conflit.
   ============================================ */

:root {
  --tih-noir:  #0a0a0a; --tih-noir2: #111111; --tih-noir3: #1c1c1c;
  --tih-or:    #c9a84c; --tih-or2:   #e8c96a;
  --tih-blanc: #f5f2ee; --tih-gris:  #888880; --tih-gris2: #2a2a28;
}

/* NAV */
.ti-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 4rem;
  gap: 2.5rem;
  flex-wrap: nowrap;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.ti-nav.scrolled { background: rgba(10,10,10,.96); backdrop-filter: blur(10px); padding: 1.2rem 4rem; border-bottom-color: var(--tih-gris2); }
/* Pages intérieures : nav TOUJOURS opaque (jamais transparente sur fond clair) */
.ti-nav--solid { background: rgba(10,10,10,.96); backdrop-filter: blur(10px); border-bottom-color: var(--tih-gris2); }
.ti-nav--solid.scrolled { background: rgba(10,10,10,.98); }
@media(max-width:768px){ .ti-nav,.ti-nav.scrolled { padding: 1.2rem 1.8rem; gap: 1rem; } }

.ti-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400;
  letter-spacing: .02em; color: var(--tih-blanc);
  display: flex; align-items: center; gap: .4rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.ti-logo em { color: var(--tih-or); font-style: normal; }

.ti-nav-links { display: flex; gap: 2.5rem; list-style: none; flex-shrink: 0; }
@media(max-width:992px){ .ti-nav-links { display: none; } }
.ti-nav-links a {
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(245,242,238,.62); transition: color .3s; position: relative; padding-bottom: 3px;
}
.ti-nav-links a::after { content:''; position:absolute; bottom:0; left:0; width:0; height:1px; background:var(--tih-or); transition:width .35s; }
.ti-nav-links a:hover { color: var(--tih-blanc); }
.ti-nav-links a:hover::after { width: 100%; }
.ti-louer-link { display: inline-flex; align-items: center; gap: 6px; }
.ti-soon {
  font-size: .5rem; font-weight: 600; letter-spacing: .1em;
  background: rgba(201,168,76,.2); color: var(--tih-or);
  border: 1px solid rgba(201,168,76,.4); padding: 2px 7px; border-radius: 10px;
  text-transform: uppercase;
}
.ti-soon::after { display: none !important; }

.ti-nav-cta {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--tih-or); border: 1px solid rgba(201,168,76,.4); padding: .62rem 1.4rem;
  transition: background .3s, color .3s;
}
.ti-nav-cta:hover { background: var(--tih-or); color: var(--tih-noir); }
@media(max-width:640px){ .ti-nav-cta { display: none; } }

/* BURGER (mobile) */
.ti-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px; z-index: 210;
}
@media(max-width:900px){ .ti-burger { display: flex; } }
.ti-burger span {
  display: block; width: 26px; height: 2px; background: var(--tih-blanc);
  transition: transform .35s ease, opacity .35s ease;
}
.ti-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ti-burger.open span:nth-child(2) { opacity: 0; }
.ti-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MENU MOBILE PLEIN ÉCRAN */
.ti-mobile-menu {
  position: fixed; inset: 0; z-index: 205;
  background: rgba(10,10,10,.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  transform: translateX(100%); transition: transform .5s cubic-bezier(.7,0,.2,1);
  visibility: hidden;
}
.ti-mobile-menu.open { transform: translateX(0); visibility: visible; }
.ti-mobile-menu a {
  font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 300;
  color: var(--tih-blanc); letter-spacing: .04em; opacity: 0; transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease, color .3s; flex-shrink: 0;
}
.ti-mobile-menu a em { font-style: italic; color: var(--tih-or); }
.ti-mobile-menu.open a { opacity: 1; transform: translateY(0); }
.ti-mobile-menu.open a:nth-child(2) { transition-delay: .12s; }
.ti-mobile-menu.open a:nth-child(3) { transition-delay: .16s; }
.ti-mobile-menu.open a:nth-child(4) { transition-delay: .20s; }
.ti-mobile-menu.open a:nth-child(5) { transition-delay: .24s; }
.ti-mobile-menu.open a:nth-child(6) { transition-delay: .28s; }
.ti-mobile-menu.open a:nth-child(7) { transition-delay: .32s; }
.ti-mobile-menu.open a:nth-child(8) { transition-delay: .36s; }
.ti-mobile-menu a:hover { color: var(--tih-or); }
.ti-mobile-menu .ti-mobile-cta {
  margin-top: .6rem; font-family: 'Montserrat', sans-serif; font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--tih-noir);
  background: var(--tih-or); padding: 1rem 2.5rem; flex-shrink: 0;
}
/* Bouton Fermer (en haut du menu) */
.ti-mobile-close {
  position: absolute; top: 1.8rem; right: 1.8rem;
  display: flex; align-items: center; gap: .55rem;
  background: none; border: none; cursor: pointer; z-index: 6;
  font-family: 'Montserrat', sans-serif; font-size: .62rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(245,242,238,.55);
  padding: .4rem;
  opacity: 0; transition: opacity .4s ease .25s, color .3s;
}
.ti-mobile-menu.open .ti-mobile-close { opacity: 1; }
.ti-mobile-close:hover { color: var(--tih-or); }
.ti-mobile-close svg { width: 16px; height: 16px; stroke: currentColor; }
/* Contacts (Gisors/Osny) — dans le flux, plus de superposition */
.ti-mobile-contact {
  margin-top: 1.5rem; text-align: center; flex-shrink: 0;
  font-size: .9rem; line-height: 2; color: rgba(245,242,238,.7); letter-spacing: .04em;
  font-weight: 300;
}
.ti-mobile-contact a { color: var(--tih-or); font-weight: 400; }
body.menu-open { overflow: hidden; }


/* FOOTER */
.ti-footer { background:var(--tih-noir2); border-top:1px solid var(--tih-gris2); padding:4rem; }
@media(max-width:768px){ .ti-footer { padding:3rem 1.5rem; } }
.ti-footer-top { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; padding-bottom:2.5rem; border-bottom:1px solid var(--tih-gris2); margin-bottom:1.8rem; }
@media(max-width:768px){ .ti-footer-top { grid-template-columns:1fr 1fr; gap:2rem; } }
.ti-footer-brand { font-family:'Cormorant Garamond',serif; font-size:1.2rem; letter-spacing:.3em; text-transform:uppercase; color:var(--tih-blanc); margin-bottom:.7rem; }
.ti-footer-text  { font-size:.82rem; line-height:1.9; color:var(--tih-gris); max-width:250px; }
.ti-footer-col-title { font-size:.68rem; letter-spacing:.25em; text-transform:uppercase; color:var(--tih-or); margin-bottom:1.2rem; }
.ti-footer-col ul { list-style:none; }
.ti-footer-col li { margin-bottom:.55rem; }
.ti-footer-col a  { font-size:.82rem; color:var(--tih-gris); transition:color .3s; }
.ti-footer-col a:hover { color:var(--tih-blanc); }
.ti-footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.ti-footer-copy   { font-size:.7rem; letter-spacing:.1em; color:var(--tih-gris2); }

/* MÉTHODE / ARSENAL MARKETING */
.ti-method { padding: 7rem 4rem; background: var(--tih-noir2); border-top: 1px solid var(--tih-gris2); }
@media(max-width:768px){ .ti-method { padding: 4rem 1.5rem; } }
.ti-method-head { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.ti-method-head .ti-eyebrow { justify-content: center; }
.ti-method-head .ti-eyebrow::before { display: none; }
.ti-method-sub { font-size: .92rem; font-weight: 300; line-height: 1.9; color: rgba(245,242,238,.62); margin-top: 1rem; }
.ti-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1200px; margin: 0 auto; }
@media(max-width:900px){ .ti-method-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:560px){ .ti-method-grid { grid-template-columns: 1fr; } }
.ti-method-card { background: var(--tih-noir); border: 1px solid var(--tih-gris2); border-radius: 6px; padding: 2.5rem 2rem; transition: background .4s, border-color .4s, transform .4s; position: relative; }
.ti-method-card:hover { background: var(--tih-noir3); border-color: rgba(201,168,76,.3); transform: translateY(-4px); }
.ti-method-icon { width: 48px; height: 48px; border: 1px solid rgba(201,168,76,.3); display: flex; align-items: center; justify-content: center; color: var(--tih-or); margin-bottom: 1.4rem; transition: background .4s; animation: tiFloat 4s ease-in-out infinite; }
.ti-method-card:nth-child(2) .ti-method-icon { animation-delay: .5s; }
.ti-method-card:nth-child(3) .ti-method-icon { animation-delay: 1s; }
.ti-method-card:nth-child(4) .ti-method-icon { animation-delay: 1.5s; }
.ti-method-card:nth-child(5) .ti-method-icon { animation-delay: 2s; }
.ti-method-card:nth-child(6) .ti-method-icon { animation-delay: 2.5s; }
.ti-method-card:hover .ti-method-icon { background: rgba(201,168,76,.1); }
@keyframes tiFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ti-method-icon { animation: none; } }
.ti-method-num { position: absolute; top: 1.6rem; right: 1.8rem; font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--tih-gris2); font-weight: 300; }
.ti-method-title { font-size: .92rem; font-weight: 500; color: var(--tih-blanc); margin-bottom: .6rem; }
.ti-method-text { font-size: .78rem; font-weight: 300; line-height: 1.7; color: var(--tih-gris); }

/* BLOG ACCUEIL */
.ti-blog { padding: 7rem 4rem; border-top: 1px solid var(--tih-gris2); }
@media(max-width:768px){ .ti-blog { padding: 4rem 1.5rem; } }
.ti-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media(max-width:900px){ .ti-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:640px){ .ti-blog-grid { grid-template-columns: 1fr; } }
.ti-blog-card { display: block; background: var(--tih-noir2); border: 1px solid var(--tih-gris2); border-radius: 6px; overflow: hidden; transition: transform .4s cubic-bezier(.23,1,.32,1), border-color .4s, box-shadow .4s; }
.ti-blog-card:hover { transform: translateY(-5px); border-color: rgba(201,168,76,.4); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.ti-blog-img { height: 200px; overflow: hidden; background: var(--tih-noir3); position: relative; }
.ti-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.ti-blog-card:hover .ti-blog-img img { transform: scale(1.06); }
.ti-blog-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--tih-noir3), var(--tih-gris2)); }
.ti-blog-body { padding: 1.6rem; }
.ti-blog-cat { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tih-or); margin-bottom: .8rem; }
.ti-blog-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--tih-blanc); line-height: 1.3; margin-bottom: .7rem; }
.ti-blog-excerpt { font-size: .76rem; font-weight: 300; line-height: 1.7; color: var(--tih-gris); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ti-blog-readmore { font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--tih-or); margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; }

/* CTA ESTIMATION FINAL */
.ti-cta-estim { position: relative; padding: 6rem 4rem; text-align: center; background: linear-gradient(135deg, #14110a 0%, var(--tih-noir) 60%); border-top: 1px solid var(--tih-gris2); overflow: hidden; }
@media(max-width:768px){ .ti-cta-estim { padding: 4rem 1.5rem; } }
.ti-cta-estim::before { content: ''; position: absolute; top: 50%; left: 50%; width: 700px; height: 700px; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 60%); pointer-events: none; }
.ti-cta-estim-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.ti-cta-estim h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; color: var(--tih-blanc); line-height: 1.2; margin-bottom: 1.2rem; }
.ti-cta-estim h2 em { font-style: italic; color: var(--tih-or); }
.ti-cta-estim p { font-size: .92rem; font-weight: 300; line-height: 1.8; color: rgba(245,242,238,.65); margin-bottom: 2.5rem; }
.ti-cta-estim-btn { display: inline-block; font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; background: var(--tih-or); color: var(--tih-noir); padding: 1.1rem 3rem; transition: background .25s, transform .2s; }
.ti-cta-estim-btn:hover { background: var(--tih-or2); transform: translateY(-2px); }


/* Compense la nav fixed sur pages intérieures */
body { padding-top: 0; }

/* Icônes réseaux sociaux footer */
.footer-social { display: flex; gap: 1rem; margin-top: 1.3rem; }
.footer-social a { color: #c9a84c; display: inline-flex; transition: opacity .3s, transform .3s; }
.footer-social a svg { width: 22px; height: 22px; display: block; }
.footer-social a:hover { opacity: .65; transform: translateY(-2px); }
