/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1a1a2e; line-height: 1.6; background: #f8f9fa; }
a { color: #0d6efd; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header { background: #fff; padding: 12px 0; border-bottom: 1px solid #e8e8e8; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-block; }
.logo img { height: 52px; width: auto; display: block; }
.logo:hover { opacity: 0.85; text-decoration: none; }
.site-header nav a { color: #1a1a2e; margin-left: 20px; font-weight: 500; }
.site-header nav a:hover { color: #e94560; text-decoration: none; }

/* ===== HERO (au-dessus de la ligne de flottaison) ===== */
.hero { background: linear-gradient(rgba(15,52,96,0.72), rgba(26,26,46,0.85)), url('estimation-immobilier-bas-rhin.jpg') center center / cover no-repeat; color: #fff; padding: 50px 0 60px; }
.hero .container { display: flex; gap: 50px; align-items: flex-start; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 15px; }
.hero-text .subtitle { font-size: 1.05rem; color: #a8b2d1; margin-bottom: 18px; line-height: 1.6; }
.hero-text .subtitle strong { color: #fff; }
.hero-points { list-style: none; margin-bottom: 18px; }
.hero-points li { padding: 4px 0; padding-left: 20px; position: relative; color: #a8b2d1; font-size: 0.95rem; }
.hero-points li::before { content: "\2713"; position: absolute; left: 0; color: #e94560; font-weight: 700; }
.hero-points li strong { color: #fff; }
.hero-villes { font-size: 0.92rem; color: #8892b0; margin-top: 5px; }
.hero-villes strong { color: #a8b2d1; }
.hero-text .prix-m2 { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 15px 20px; display: inline-block; margin-bottom: 15px; }
.hero-text .prix-m2 span { font-size: 1.8rem; font-weight: 700; color: #e94560; white-space: nowrap; }
.hero-text .prix-m2-source { display: block; margin-top: 4px; font-size: 0.75rem; color: rgba(255,255,255,0.65); }

/* ===== ACTUALITES HERO ===== */
/* Bloc actualites : affiche en bas de page, sur fond clair */
.actualites { padding: 40px 0; background: #fff; border-top: 1px solid #e6e9ee; }
.hero-actu { background: #f8f9fa; border-radius: 8px; padding: 18px 20px; border-left: 3px solid #e94560; }
.hero-actu h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: #e94560; margin-bottom: 10px; }
.hero-actu ul { list-style: none; }
.hero-actu li { padding: 6px 0; border-bottom: 1px solid #e6e9ee; }
.hero-actu li:last-child { border-bottom: none; }
.hero-actu a { color: #33415c; font-size: 0.88rem; line-height: 1.4; display: block; }
.hero-actu a:hover { color: #0d6efd; }
.hero-actu .actu-meta { display: block; font-size: 0.75rem; color: #8a94a6; margin-top: 2px; }

/* ===== FORMULAIRE CTA ===== */
.form-cta { background: #fff; border-radius: 12px; padding: 30px; width: 400px; min-width: 380px; box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.form-cta h2 { color: #1a1a2e; font-size: 1.3rem; text-align: center; margin-bottom: 5px; }
.form-cta .form-sub { text-align: center; color: #666; font-size: 0.9rem; margin-bottom: 20px; }
.form-cta label { display: block; font-size: 0.85rem; font-weight: 600; color: #333; margin-bottom: 4px; }
.form-cta select,
.form-cta input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.95rem; margin-bottom: 12px; }
.form-cta select:focus,
.form-cta input:focus { border-color: #0d6efd; outline: none; box-shadow: 0 0 0 3px rgba(13,110,253,0.15); }
.btn-cta { width: 100%; padding: 14px; background: #e94560; color: #fff; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.btn-cta:hover { background: #c73650; }
.form-cta .form-trust { text-align: center; font-size: 0.8rem; color: #888; margin-top: 10px; }

/* ===== ARGUMENTS / AVIS ===== */
.arguments { padding: 50px 0; background: #fff; }
.arguments .container { display: flex; gap: 30px; }
.argument-card { flex: 1; text-align: center; padding: 25px; border-radius: 10px; background: #f8f9fa; }
.argument-card .icon { font-size: 2.5rem; margin-bottom: 10px; }
.argument-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.argument-card p { color: #555; font-size: 0.95rem; }

/* ===== CONFIRMATION D'ENVOI ===== */
.confettis-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; }

.succes-estimation { display: block; text-align: center; padding: 30px 10px 22px; }
.succes-estimation[hidden] { display: none; }
.succes-icone { margin-bottom: 14px; }
.succes-icone .succes-cercle { stroke: #2ecc71; stroke-dasharray: 151; stroke-dashoffset: 151; animation: succes-trait 0.5s ease-out forwards; }
.succes-icone .succes-coche  { stroke: #2ecc71; stroke-dasharray: 40;  stroke-dashoffset: 40;  animation: succes-trait 0.35s 0.4s ease-out forwards; }
@keyframes succes-trait { to { stroke-dashoffset: 0; } }

.succes-titre { font-size: 1.5rem; color: #1a1a2e; margin-bottom: 10px; outline: none; }
.succes-detail { color: #444; font-size: 1rem; margin-bottom: 14px; }
.succes-suite { color: #555; font-size: 0.92rem; line-height: 1.55; background: #f0f9f3; border: 1px solid #cdebd9; border-radius: 8px; padding: 12px 14px; }
.succes-suite strong { color: #1e7a48; }

/* Les animations d'entree sont supprimees si l'utilisateur les refuse.
   Les confettis sont deja ecartes cote JS. */
@media (prefers-reduced-motion: reduce) {
    .succes-icone .succes-cercle,
    .succes-icone .succes-coche { animation: none; stroke-dashoffset: 0; }
}

/* ===== FIL D'ARIANE ===== */
.fil-ariane { background: #f8f9fa; border-bottom: 1px solid #e6e9ee; padding: 10px 0; font-size: 0.85rem; }
.fil-ariane .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fil-ariane a { color: #0d6efd; }
.fil-ariane span[aria-hidden] { color: #999; }
.fil-ariane span[aria-current] { color: #666; }

/* ===== FAQ ===== */
.faq { padding: 50px 0; background: #f0f4f8; }
.faq h2 { text-align: center; margin-bottom: 30px; }
.faq-liste { max-width: 780px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: #1a1a2e; list-style: none; position: relative; padding-right: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: #e94560; line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { background: #fafbfc; }
.faq-item p { padding: 0 20px 18px; color: #444; font-size: 0.95rem; line-height: 1.6; }

/* ===== ENTREPRISES ===== */
.entreprises { padding: 50px 0; background: #fff; }
.entreprises h2 { margin-bottom: 25px; }

/* SPOTLIGHT (3 premieres agences avec vignettes) */
.entreprises-spotlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.entreprise-spotlight { background: #f8f9fa; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.entreprise-spotlight:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.spotlight-thumbnail { width: 100%; height: 150px; object-fit: cover; background: #e0e0e0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.spotlight-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-thumbnail.placeholder { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; font-weight: 700; text-align: center; font-size: 0.9rem; padding: 15px; }
.spotlight-info { padding: 15px; }
.spotlight-info h4 { font-size: 1rem; margin-bottom: 6px; color: #1a1a2e; }
.spotlight-desc { font-size: 0.85rem; color: #666; margin-bottom: 8px; line-height: 1.4; }
.spotlight-lieu { font-size: 0.8rem; color: #888; margin-bottom: 10px; }
.btn-spotlight { display: inline-block; padding: 8px 14px; background: #e94560; color: #fff; border-radius: 6px; font-size: 0.85rem; font-weight: 600; transition: background 0.2s; }
.btn-spotlight:hover { background: #c73650; text-decoration: none; }

/* GRILLE CLASSIQUE (autres agences) */
.entreprises-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.entreprise-card { padding: 18px; border: 1px solid #eee; border-radius: 8px; transition: box-shadow 0.2s; }
.entreprise-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.entreprise-card h4 { margin-bottom: 4px; font-size: 0.95rem; }
.entreprise-card p { font-size: 0.85rem; color: #555; margin-bottom: 3px; }
.entreprise-card .entreprise-lieu { font-size: 0.8rem; color: #888; }
.entreprise-card a { font-size: 0.82rem; }

/* ===== TEXTE SEO ===== */
.seo-text { padding: 40px 0; background: #f8f9fa; }
.seo-text h2 { margin-bottom: 15px; }
.seo-text p { color: #444; margin-bottom: 12px; }

/* ===== MAILLAGE INTERNE ===== */
.maillage { padding: 50px 0; background: #fff; }
.maillage h2 { margin-bottom: 25px; }
.maillage-bloc { margin-bottom: 25px; }
.maillage-bloc h3 { margin-bottom: 10px; color: #1a1a2e; font-size: 1.05rem; }
.maillage-liste { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.maillage-liste li a { display: inline-block; padding: 6px 14px; background: #e8f0fe; border-radius: 20px; font-size: 0.88rem; color: #0d6efd; transition: background 0.2s; }
.maillage-liste li a:hover { background: #0d6efd; color: #fff; text-decoration: none; }

/* ===== FOOTER ===== */
.site-footer { background: #1a1a2e; color: #aaa; text-align: center; padding: 25px 0; font-size: 0.9rem; }
.footer-zones { max-width: 1000px; margin: 0 auto 22px; padding-bottom: 20px; border-bottom: 1px solid #33334d; text-align: left; }
.footer-zones-titre { color: #fff; font-weight: 600; margin-bottom: 12px; text-align: center; }
.footer-zones ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 20px; }
.footer-zones li a { display: block; color: #aaa; text-decoration: none; padding: 2px 0; font-size: 0.85rem; }
.footer-zones li a:first-child { color: #e94560; font-weight: 600; margin-bottom: 3px; }
.footer-zones li a:hover { color: #fff; text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero .container { flex-direction: column; }
    .form-cta { width: 100%; min-width: auto; }
    .hero-text h1 { font-size: 1.6rem; }
    .arguments .container { flex-direction: column; }
    .entreprises-spotlight { grid-template-columns: 1fr; }
    .entreprises-grid { grid-template-columns: 1fr; }
}
