/* Fouapon Immobilier – feuille de style (mobile d'abord) */
:root {
  --blue: #1e4f8c;
  --blue-dark: #12345e;
  --blue-deep: #0c2340;
  --blue-light: #eaf1fa;
  --accent: #3b82c4;
  --text: #1f2a37;
  --muted: #5b6878;
  --white: #ffffff;
  --border: #dde5ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 52, 94, .08);
  --font-title: "Poppins", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font-text); color: var(--text); line-height: 1.65; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .6em; color: var(--blue-deep); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Boutons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-family: var(--font-title);
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; font-size: 1rem; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }
.btn-small { padding: 9px 18px; background: var(--blue); color: var(--white) !important; }
.btn-block { width: 100%; }
.btn-call { background: #ffffff; color: var(--blue-dark); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-call:hover { background: var(--blue-light); }

/* Téléphone de l'en-tête */
.header-phone { order: 2; margin-left: auto; margin-right: 8px; display: flex; align-items: center; gap: 6px;
  background: var(--blue); color: var(--white); font-weight: 600; font-family: var(--font-title); font-size: .9rem;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.header-phone:hover { background: var(--blue-dark); }
.menu-toggle { order: 3; }
@media (max-width: 379px) { .header-phone-num { display: none; } }

/* Bouton d'appel flottant (mobile) */
.call-float { position: fixed; left: 16px; bottom: 18px; z-index: 45; display: flex; align-items: center; gap: 8px;
  background: #1e9e55; color: var(--white); font-weight: 600; font-family: var(--font-title); padding: 12px 20px;
  border-radius: 40px; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: pulse 2.4s infinite; }
.call-float:hover { background: #17824a; }
@keyframes pulse { 0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(30,158,85,.5); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 10px rgba(30,158,85,0); } }
@media (prefers-reduced-motion: reduce) { .call-float { animation: none; } }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--border); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 1.2rem; color: var(--blue-deep); }
.logo-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: var(--white);
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1; }
.logo-text strong { color: var(--accent); font-weight: 700; margin-left: 2px; }
.logo-light { color: var(--white); }
.menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--blue-deep); transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--white); display: none; flex-direction: column;
  padding: 10px 20px 20px; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
.nav.open { display: flex; }
.nav a { padding: 12px 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
.nav a.btn { margin-top: 12px; border-bottom: 0; text-align: center; }
.nav a:not(.btn):hover { color: var(--blue); }

/* Accueil */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: var(--white);
  background: url("../images/maisons/hero.jpg") center / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,35,64,.88) 0%, rgba(18,52,94,.65) 55%, rgba(18,52,94,.25) 100%); }
.hero-content { position: relative; padding-top: 60px; padding-bottom: 60px; max-width: 1180px; }
.hero-tag { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; border-radius: 30px; font-size: .85rem; letter-spacing: .03em; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 7vw, 3.6rem); max-width: 720px; margin-top: .4em; }
.hero-slogan { font-family: var(--font-title); font-size: clamp(1.1rem, 3vw, 1.4rem); color: #bcd6f3; font-weight: 500; }
.hero-text { max-width: 560px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Chiffres */
.stats { background: var(--blue-deep); color: var(--white); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-title); font-size: 1.8rem; color: var(--white); }
.stat span { font-size: .9rem; color: #b4c6dc; }

/* Sections */
.section { padding: 70px 0; }
.section-light { background: var(--blue-light); }
.section-blue { background: linear-gradient(160deg, var(--blue-dark), var(--blue)); }
.section-blue h2, .section-blue .section-tag { color: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p:last-child { color: var(--muted); }
.section-tag { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: .5em; }

/* Biens */
.properties { display: grid; gap: 26px; }
.property { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.property:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(18,52,94,.14); }
.property-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.property-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.property:hover .property-img img { transform: scale(1.05); }
.badge { position: absolute; top: 14px; left: 14px; background: var(--blue); color: var(--white); font-size: .75rem;
  font-weight: 600; padding: 5px 12px; border-radius: 6px; }
.badge-premium { background: var(--blue-deep); }
.property-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.property-place { color: var(--muted); font-size: .9rem; margin-bottom: .4em; }
.property-features { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.property-features li { background: var(--blue-light); color: var(--blue-dark); font-size: .8rem; padding: 4px 10px; border-radius: 6px; }
.property-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 16px; }
.zone-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.zone-info span { background: var(--blue-light); color: var(--blue-dark); font-weight: 600; font-size: .92rem;
  padding: 8px 16px; border-radius: 30px; }
.price { font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; color: var(--blue); margin: 0; }
.price small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.link-more { font-weight: 600; font-size: .9rem; }

/* À propos */
.about { display: grid; gap: 36px; align-items: center; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-text p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; font-weight: 500; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: var(--white); display: grid; place-items: center; font-size: .8rem; }

/* Services */
.services { display: grid; gap: 22px; }
.service { padding: 30px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); transition: .25s; }
.service:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.service-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--blue-light); display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 18px; }
.service p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Témoignages */
.testimonials { display: grid; gap: 22px; }
.testimonial { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.stars { color: #f5b301; letter-spacing: 2px; margin-bottom: .6em; }
.testimonial blockquote { margin: 0 0 22px; font-style: italic; color: var(--text); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; }
.testimonial figcaption strong { display: block; color: var(--blue-deep); }
.testimonial figcaption span { font-size: .85rem; color: var(--muted); }

/* Pied de page / contact */
.footer { background: var(--blue-deep); color: #c9d6e6; padding-top: 64px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 50px; }
.footer-info p { margin: 18px 0 22px; max-width: 420px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.contact-list a { color: var(--white); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.footer-call { margin-top: 10px; }
.contact-form { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 28px 22px; }
.contact-form h2 { font-size: 1.5rem; }
.form-row { margin-bottom: 16px; }
.form-half { display: grid; gap: 16px; }
.contact-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; color: var(--text); background: #f8fafd; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 3px rgba(59,130,196,.15); }
.contact-form .invalid { border-color: #d14343; }
.form-msg { min-height: 1.2em; font-size: .9rem; margin: 0 0 12px; }
.form-msg.error { color: #c0392b; }
.form-msg.success { color: #1e7d46; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 84px; font-size: .85rem; text-align: center; }
.footer-bottom p { margin: 0; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--blue);
  color: var(--white); display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Tablette */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .properties, .services { grid-template-columns: repeat(2, 1fr); }
  .form-half { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 34px; }
}

/* Ordinateur */
@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .nav { order: 1; margin-left: auto; }
  .header-phone { margin-left: 24px; margin-right: 0; padding: 10px 16px; }
  .nav a.btn-small { background: none; color: var(--text) !important; padding: 0; font-family: var(--font-text); font-weight: 500; }
  .nav a.btn-small:hover { transform: none; color: var(--blue) !important; }
  .footer-bottom { padding-bottom: 20px; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 26px; padding: 0; box-shadow: none; background: none; }
  .nav a { padding: 0; border: 0; font-size: .95rem; }
  .nav a.btn { margin: 0; }
  .properties, .testimonials { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1fr 1fr; gap: 60px; }
  .footer-grid { grid-template-columns: 1fr 1.1fr; gap: 60px; }
  .section { padding: 96px 0; }
}
