/*
Theme Name: Theme Immobilier
Theme URI: https://example.com
Author: Verdent
Author URI: https://example.com
Description: Theme WordPress pour l'immobilier 2026
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-immobilier
Tags: immobilier, real-estate, one-page, responsive
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a56db;
  --primary-dark: #1341b0;
  --accent: #f59e0b;
  --dark: #0f172a;
  --gray-700: #334155;
  --gray-400: #94a3b8;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --green: #10b981;
  --red: #ef4444;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: var(--gray-700);
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1a56db 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,158,11,0.5);
}

.btn-cta.large { font-size: 1.1rem; padding: 16px 40px; }

.trust-line {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}

.trust-line span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── SECTION TITLES ── */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gray-400);
  font-size: 1rem;
}

/* ── COMPARISON TABLE ── */
.compare {
  padding: 80px 0;
  background: var(--white);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead tr {
  background: var(--dark);
  color: var(--white);
}

thead th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-100); }

tbody td {
  padding: 16px 20px;
  vertical-align: middle;
}

tbody td strong { color: var(--dark); }

.stars { font-size: 1rem; letter-spacing: 1px; }

.btn-table {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-table:hover { background: var(--primary-dark); }

/* ── THEME CARDS ── */
.themes-section {
  padding: 80px 0;
  background: var(--gray-100);
}

.theme-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 32px;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s;
}

.theme-card:hover { box-shadow: var(--shadow-lg); }

.theme-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.gold { background: #fef3c7; color: #92400e; }
.badge.blue { background: #dbeafe; color: #1e40af; }

.theme-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.theme-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 24px 0 12px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.feature-list li {
  background: var(--gray-100);
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.pros, .cons {
  padding: 20px;
  border-radius: 10px;
}

.pros { background: #ecfdf5; border: 1px solid #a7f3d0; }
.cons { background: #fef2f2; border: 1px solid #fecaca; }

.pros h4 { color: var(--green); font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.cons h4 { color: var(--red); font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }

.pros ul, .cons ul { list-style: none; }

.pros ul li, .cons ul li {
  font-size: 0.9rem;
  padding: 4px 0;
  color: var(--gray-700);
}

/* ── GUIDE ── */
.guide {
  padding: 80px 0;
  background: var(--white);
}

.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-100);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  border: 1px solid #e2e8f0;
}

.checklist li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ── BONUS ── */
.bonus {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a56db 0%, #0f172a 100%);
}

.bonus-box {
  text-align: center;
  color: var(--white);
}

.bonus-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.bonus-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.bonus-box p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FAQ ── */
.faq {
  padding: 80px 0;
  background: var(--gray-100);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--gray-100); }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 16px 24px 20px;
  color: var(--gray-700);
  font-size: 0.95rem;
  border-top: 1px solid #e2e8f0;
}

.faq-item.open .faq-answer { display: block; }

/* ── FINAL CTA ── */
.final-cta {
  padding: 80px 0;
  background: var(--white);
  text-align: center;
}

.final-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 28px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .pros-cons { grid-template-columns: 1fr; }
  .trust-line { gap: 10px; }
  .theme-card { padding: 28px 20px; }
}
