/* ==========================================================================
   Owly — site public : mouvement léger (apparition au défilement, entrée du héros, pictogrammes, bandeau immobilier)
   Les scènes animées qui expliquent le fonctionnement sont dans site-scenes.css.
   Tout est désactivé si l'appareil demande moins de mouvement (prefers-reduced-motion).
   ========================================================================== */

/* ---------- Apparition au défilement (activée seulement quand JavaScript tourne : classe « js » posée par jsflag.js) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s cubic-bezier(.2, .7, .2, 1), transform .65s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* Entrée du héros au chargement */
@keyframes dm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.site-hero .wrap > div:first-child > * { animation: dm-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.site-hero .wrap > div:first-child > *:nth-child(2) { animation-delay: .06s; }
.site-hero .wrap > div:first-child > *:nth-child(3) { animation-delay: .14s; }
.site-hero .wrap > div:first-child > *:nth-child(4) { animation-delay: .22s; }
.site-hero .wrap > div:first-child > *:nth-child(5) { animation-delay: .30s; }
.site-hero .wrap > div:first-child > *:nth-child(6) { animation-delay: .38s; }
.site-hero .form-card { animation: dm-rise .8s cubic-bezier(.2, .7, .2, 1) .2s both; }

/* ---------- Pictogrammes : un mouvement discret, propre à chacun ---------- */
.stat-icon.fx { position: relative; overflow: hidden; }
@keyframes dm-ring { 0%, 55%, 100% { transform: rotate(0); } 60% { transform: rotate(16deg); } 66% { transform: rotate(-14deg); } 72% { transform: rotate(10deg); } 78% { transform: rotate(-6deg); } 84% { transform: rotate(0); } }
@keyframes dm-nudge { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(2px) rotate(-6deg); } }
@keyframes dm-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } 45% { transform: translateY(0); } }
@keyframes dm-wave { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14) rotate(-6deg); } }
@keyframes dm-scan { 0%, 100% { top: 7px; opacity: .2; } 50% { top: calc(100% - 9px); opacity: .9; } }
@keyframes dm-flash { 0%, 86%, 100% { opacity: 0; } 90% { opacity: .85; } }
@keyframes dm-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.fx-ring .icon { transform-origin: 50% 12%; animation: dm-ring 3.6s ease-in-out infinite; }
.fx-nudge .icon { animation: dm-nudge 2.6s ease-in-out infinite; }
.fx-bounce .icon { animation: dm-bounce 2.8s ease-in-out infinite; }
.fx-wave .icon { animation: dm-wave 2.6s ease-in-out infinite; }
.fx-pulse .icon { animation: dm-pulse 2.4s ease-in-out infinite; }
.fx-scan::after { content: ''; position: absolute; left: 6px; right: 6px; top: 7px; height: 2px; border-radius: 2px; background: currentColor; animation: dm-scan 2.4s ease-in-out infinite; }
.fx-flash::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #fff, rgba(255, 255, 255, 0) 70%); animation: dm-flash 3.2s ease-in-out infinite; }

/* Les cartes se soulèvent au survol */
.feature, .step-card, .link-card, .feat-card { transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
  .feature:hover, .step-card:hover, .link-card:hover, .feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

/* ---------- Bandeau « uniquement l'immobilier » ---------- */
.immo-band { padding: clamp(30px, 4.5vw, 48px) 0; background: var(--surface); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.immo-head { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.immo-head h2 { margin-top: 4px; }
.immo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.immo-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.immo-item .stat-icon { margin: 0; flex: none; }
.immo-item h3 { font-size: 16px; margin: 0 0 4px; }
.immo-item p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Drapeau (bande « Made in France » et pied de page) ---------- */
.france-flag { display: inline-flex; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(0, 20, 60, .12); }
.france-flag i { flex: 1; display: block; }
.france-flag i:nth-child(1) { background: #0a3d91; }
.france-flag i:nth-child(2) { background: #fff; }
.france-flag i:nth-child(3) { background: #e1000f; }
.mif { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; letter-spacing: .02em; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .site-hero .wrap > div:first-child > *, .site-hero .form-card { animation: none; }
  .fx .icon, .fx::after { animation: none !important; }
}
