/* ImmoAI : couche de design fluide (20/11/2026). Chargee en dernier.
   Tokens, en-tete verre, boutons pilule, cartes douces, formulaires, pied de page,
   apparitions au defilement (apple.js). Mouvements en transform et opacity, 60 i/s. */
:root {
  --ap-ease: cubic-bezier(.22, 1, .36, 1);
  --ap-ease-io: cubic-bezier(.65, 0, .35, 1);
  --ap-d1: .16s; --ap-d2: .28s; --ap-d3: .6s;
  --ap-r1: 12px; --ap-r2: 18px; --ap-r3: 26px;
  --ap-hair: rgba(15, 15, 40, .08);
  --ap-sh1: 0 1px 2px rgba(15, 15, 40, .04), 0 6px 20px -8px rgba(15, 15, 40, .10);
  --ap-sh2: 0 2px 6px rgba(15, 15, 40, .05), 0 28px 56px -24px rgba(15, 15, 40, .28);
  --ap-glass: rgba(251, 251, 253, .72);
  --ap-night: #0c0d1b;
  --ap-focus: rgba(99, 102, 241, .28);
  --bg: #f5f5f7;
  --line: #e5e5ec;
  --radius: 18px;
  --shadow-card: var(--ap-sh1);
  --shadow-card-hover: var(--ap-sh2);
}
html[data-theme="dark"] {
  --ap-hair: rgba(255, 255, 255, .1);
  --ap-sh1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -10px rgba(0, 0, 0, .5);
  --ap-sh2: 0 2px 6px rgba(0, 0, 0, .5), 0 30px 60px -24px rgba(0, 0, 0, .8);
  --ap-glass: rgba(18, 20, 36, .72);
  --ap-night: #080914;
  --ap-focus: rgba(129, 140, 248, .35);
  --shadow-card: var(--ap-sh1);
  --shadow-card-hover: var(--ap-sh2);
}
body { letter-spacing: -.011em; font-feature-settings: "cv11", "ss03"; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -.028em; text-wrap: balance; }
::selection { background: rgba(99, 102, 241, .22); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

/* Transition entre pages */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: var(--ap-ease); }
.hdr { view-transition-name: hdr; }

/* En-tete en verre */
.hdr { background: var(--ap-glass); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid var(--ap-hair); }
.hdr-in { height: 64px; }
.hdr-logo-carre { background: #4f46e5; box-shadow: none; border-radius: 10px; }
.hdr-logo-nom { font-weight: 700; letter-spacing: -.025em; }
.hdr-nav > a, .hdr-menu-btn { border-radius: 980px; white-space: nowrap; font-weight: 500; }
.hdr-menu-panneau { border-radius: var(--ap-r2); border: 1px solid var(--ap-hair); box-shadow: var(--ap-sh2); }

/* Boutons : pilule pleine, retour au toucher */
.btn, .hdr-cta, .cpt-btn {
  background: #4f46e5; border-radius: 980px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 1px 2px rgba(79, 70, 229, .35), 0 10px 22px -10px rgba(79, 70, 229, .6);
  transition: transform var(--ap-d2) var(--ap-ease); will-change: transform;
}
.btn:hover, .hdr-cta:hover, .cpt-btn:hover { filter: none; transform: translate3d(0, -1px, 0) scale(1.025); box-shadow: 0 1px 2px rgba(79, 70, 229, .35), 0 10px 22px -10px rgba(79, 70, 229, .6); }
.btn:active, .hdr-cta:active, .cpt-btn:active { transform: scale(.97); filter: none; transition-duration: var(--ap-d1); }
.btn-ghost { background: var(--surface, #fff); color: var(--indigo-dark); border: 1px solid var(--ap-hair); box-shadow: none; }
.btn-ghost:hover { background: var(--surface, #fff); box-shadow: none; }
.btn:disabled, .btn[disabled] { opacity: .55; transform: none; }

/* Cartes et panneaux */
.card, .panel, .agences-panel, .estim-card, .baisse-card, .hv3-pro, .hv3-compte-carte {
  border: 1px solid var(--ap-hair); border-radius: var(--ap-r2); box-shadow: var(--ap-sh1);
}
.baisse-card, .hv3-compte-carte, a.card { transition: transform var(--ap-d2) var(--ap-ease); }
.baisse-card:hover, .hv3-compte-carte:hover, a.card:hover { transform: translate3d(0, -4px, 0); }
.baisse-card img { transition: transform .7s var(--ap-ease); }
.baisse-card:hover img { transform: scale(1.035); }

/* Formulaires */
.cpt-form input:not([type=checkbox]):not([type=radio]), .field input, .field select, .field textarea,
.estim-card input, .estim-card select, .agences-filtres input, .agences-filtres select, textarea {
  min-height: 48px; border: 1px solid var(--line); border-radius: var(--ap-r1); padding: 12px 15px;
  font-size: 16px; background: var(--surface, #fff); color: var(--ink);
}
textarea { min-height: 96px; }
.cpt-form input:not([type=checkbox]):focus, .field input:focus, .field select:focus, .field textarea:focus,
.estim-card input:focus, .estim-card select:focus, .agences-filtres input:focus, .agences-filtres select:focus, textarea:focus {
  outline: 0; border-color: var(--indigo); box-shadow: 0 0 0 4px var(--ap-focus);
}
.cpt-form { padding: 32px; border-radius: var(--ap-r3); }
.cpt-form h2 { font-size: 24px; letter-spacing: -.03em; }
.cpt-btn { min-height: 50px; font-size: 16px; }

/* Bandeau des pages interieures : fond uni, grand titre */
.hero { background: radial-gradient(60% 90% at 88% -20%, rgba(99, 102, 241, .22), transparent 70%), var(--ap-night); padding: 72px 0 104px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; letter-spacing: -.038em; line-height: 1.04; }
.hero h1 .grad { background: none; -webkit-text-fill-color: #aab0ff; color: #aab0ff; }
.hero p.lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: #b9bed6; max-width: 640px; letter-spacing: -.012em; }
.hero-compact { padding: 64px 0 104px; }
.hero .badge { display: inline-flex; margin-bottom: 20px; padding: 5px 12px; border-radius: 980px; font-size: 13px; background: rgba(255,255,255,.08); color: #d9dcf2; }

/* Pied de page : liens sans soulignement, survol par la couleur */
.site-footer-pro { background: var(--ap-night); }
.site-footer-pro a, .site-footer-pro a:hover, .site-footer-pro a:focus { text-decoration: none; }
.sfp-col a { color: rgba(255, 255, 255, .64); transition: color var(--ap-d2) var(--ap-ease); }
.sfp-col a:hover { color: #fff; }
.sfp-titre { color: #fff; font-weight: 600; letter-spacing: -.01em; }

/* Cibles tactiles */
@media (max-width: 900px) {
  .hdr-burger, .hdr-theme, .hdr-fav { min-width: 44px; min-height: 44px; }
  .tabbar a { min-height: 48px; }
  .hdr-logo { min-height: 44px; }
  .hdr-nav-mobile-lien, .hdr-nav-mobile-pro { min-height: 44px; display: flex; align-items: center; }
  .sfp-col a { padding: 5px 0; }
}

/* Accueil, ecrans larges (le mobile du 19/11 reste tel quel) */
@media (min-width: 701px) {
  .hv3 section { padding: 108px 0; }
  .hv3 h2 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 700; letter-spacing: -.035em; }
  .hv3-hero { background: radial-gradient(70% 70% at 84% -10%, rgba(99, 102, 241, .26), transparent 72%), var(--ap-night); }
  .hv3-aurora { display: none; }
  .hv3-barre-halo { background: rgba(255, 255, 255, .16); animation: none; padding: 1px; }
  .hv3-hero h1 { font-size: clamp(42px, 5vw, 66px); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
  .hv3-hero h1 em { background: none; -webkit-text-fill-color: #f5b544; color: #f5b544; animation: none; }
  .hv3-hero .lead { font-size: 19px; letter-spacing: -.012em; }
  .hv3-deposer, .hv3-deposer a { color: #c9cde6; }
  .hv3-deposer a { color: #f5b544; text-decoration: none; }
  .hv3-deposer a:hover { color: #ffd07a; }
  .hv3-b { border: 1px solid var(--ap-hair); border-radius: 24px; box-shadow: var(--ap-sh1); transition: transform var(--ap-d2) var(--ap-ease); }
  .hv3-b:hover { transform: translate3d(0, -4px, 0); }
  .hv3-b-nuit { background: var(--ap-night); border-color: transparent; }
  .hv3-b-ambre, .hv3-b-mer { background: var(--surface, #fff); }
  .hv3-b-ambre .fleche, .hv3-b-mer .fleche { color: var(--indigo-dark); }
}
/* Villes : cartes calmes, une seule teinte (plus de tuiles arc-en-ciel) */
.hv3 .hv3-villes a:nth-child(n) { background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--ap-hair); border-radius: var(--ap-r2); box-shadow: var(--ap-sh1); transition: transform var(--ap-d2) var(--ap-ease); }
.hv3 .hv3-villes a::after { display: none; }
.hv3 .hv3-villes a:hover { transform: translate3d(0, -3px, 0); }
.hv3 .hv3-villes .nom small { color: var(--muted); opacity: 1; }
.hv3 .hv3-villes .prix { color: var(--ink); }
.hv3 .hv3-villes .prix small { color: var(--muted); opacity: 1; }

/* Apparitions au defilement (JS : apple.js) */
.ap-rv { opacity: 0; transform: translate3d(0, 20px, 0); }
.ap-rv.ap-go { transition: opacity var(--ap-d3) var(--ap-ease) var(--ap-dl, 0s), transform .7s var(--ap-ease) var(--ap-dl, 0s); opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ap-rv { opacity: 1; transform: none; }
  .btn, .hdr-cta, .cpt-btn, .baisse-card, .baisse-card img, .hv3-b, .hv3 .hv3-villes a { transition: none; }
  .btn:hover, .hdr-cta:hover, .baisse-card:hover, .hv3-b:hover, .hv3 .hv3-villes a:hover, .baisse-card:hover img { transform: none; }
  @view-transition { navigation: none; }
}

/* Blog et outils : cartes sans bandeau violet vide */
.blog-carte .bc-image:not(:has(.bc-emoji:not(:empty))) { display: none; }
.blog-carte, .outil-carte, .vc-card { border: 1px solid var(--ap-hair); border-radius: var(--ap-r2); box-shadow: var(--ap-sh1); transition: transform var(--ap-d2) var(--ap-ease); }
.blog-carte:hover, .outil-carte:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--ap-sh1); border-color: var(--ap-hair); }
.blog-categories a, .blog-cat { min-height: 40px; }
