/* ============================================================
   /investir-cle-en-main/ — Revue de marché 2026
   Format GEO éditorial : panorama + comparatif + FAQ
   Expat' Immo — design system teal #229FA8 / navy #1a2b4a
   ============================================================ */

.page-investir-cle-en-main main,
.page-investir-cle-en-main article,
.page-investir-cle-en-main .page-content { max-width: none; padding: 0; }

.page-investir-cle-en-main .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ────────────────────────────────────────────────────── */
.market-hero {
  background: linear-gradient(135deg, #1a2b4a 0%, #0f1e36 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.market-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34, 159, 168, .18) 0%, transparent 70%);
  pointer-events: none;
}
.market-hero .container { position: relative; }
.market-breadcrumb {
  font-size: .85rem;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 1rem;
}
.market-breadcrumb a {
  color: #5cdee6;
  text-decoration: none;
}
.market-breadcrumb a:hover { text-decoration: underline; }
.market-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.market-hero h1 span {
  color: #5cdee6;
  font-weight: 600;
}
.market-hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .9);
  max-width: 780px;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}
.market-hero-meta {
  font-size: .9rem;
  color: rgba(255, 255, 255, .7);
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.market-hero-meta a {
  color: #5cdee6;
  text-decoration: none;
}
.market-hero-meta a:hover { text-decoration: underline; }

/* ── Key Data en-tête ──────────────────────────────────────────
   Reprend le style de .article-key-data (cf. article.css) mais
   dans le contexte page (container 1080px, padding haut 60px).
   ──────────────────────────────────────────────────────────── */
.market-keydata {
  padding: 64px 0 16px;
  background: #fff;
}

/* ── SECTIONS ────────────────────────────────────────────────── */
.market-section {
  padding: 56px 0;
  background: #ffffff;
}
.market-section-alt { background: #f5f9fa; }

.market-section h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: #1a2b4a;
  margin: 0 0 1.2rem;
  line-height: 1.3;
}
.market-section p {
  color: #33424a;
  font-size: 1.02rem;
  line-height: 1.72;
  margin: 0 0 1rem;
}
.market-section-intro {
  color: #52616b;
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 840px;
}

.market-section a {
  color: var(--teal, #229fa8);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.market-section a:hover { color: var(--teal-dark, #176970); }

/* ── CRITERES ─────────────────────────────────────────────────── */
.market-criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 1.5rem;
}
.market-criteria-card {
  background: #fff;
  border: 1px solid #e0e9ec;
  border-radius: 10px;
  padding: 24px 22px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  transition: box-shadow .2s, transform .2s;
}
.market-criteria-card:hover {
  box-shadow: 0 6px 18px rgba(26, 43, 74, .08);
  transform: translateY(-2px);
}
.market-criteria-num {
  position: absolute;
  top: -14px;
  left: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal, #229fa8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(34, 159, 168, .3);
}
.market-criteria-card h3 {
  color: #1a2b4a;
  font-size: 1.12rem;
  margin: .5rem 0 .6rem;
  line-height: 1.35;
  font-weight: 600;
}
.market-criteria-card p {
  font-size: .95rem;
  color: #3b4a52;
  margin: 0;
  line-height: 1.6;
}

/* ── ALERTE CONSOLIDATION MARCHÉ ──────────────────────────────────
   Bloc d'alerte factuelle sur l'état du marché clé en main 2023-2025.
   Jaune doux pour signal de vigilance sans être alarmiste.
   ──────────────────────────────────────────────────────────── */
.market-consolidation-alert {
  background: linear-gradient(135deg, #fff9e6 0%, #fdf3d0 100%);
  border-left: 4px solid #d4a017;
  padding: 18px 22px;
  margin: 0 0 1.5rem;
  border-radius: 6px;
  color: #4a3d10;
  font-size: .98rem;
  line-height: 1.65;
}
.market-consolidation-alert strong {
  color: #7a5a00;
  font-weight: 600;
}

/* ── TABLEAU COMPARATIF ────────────────────────────────────────── */
.market-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 1rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}
.market-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .88rem;
  min-width: 1040px;
}
.market-table thead th {
  background: #1a2b4a;
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .02em;
}
.market-table tbody th,
.market-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #eaeef0;
  vertical-align: top;
  line-height: 1.5;
}
.market-table tbody th {
  color: #1a2b4a;
  font-weight: 600;
  white-space: nowrap;
  background: #f9fbfc;
}
.market-table tbody tr:last-child th,
.market-table tbody tr:last-child td {
  border-bottom: none;
}
.market-table-row-us {
  background: linear-gradient(90deg, #e7f6f7 0%, #f3fafb 100%);
}
.market-table-row-us th {
  background: #d5edf0 !important;
  color: #176970;
}
.market-table-badge {
  display: inline-block;
  margin-left: .4rem;
  padding: 2px 8px;
  background: var(--teal, #229fa8);
  color: #fff;
  font-size: .7rem;
  border-radius: 10px;
  font-weight: 600;
  vertical-align: middle;
}
.market-table-note {
  color: #6a7680;
  font-size: .85rem;
  margin-top: .5rem;
}

/* ── US GRID ─────────────────────────────────────────────────── */
.market-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 1.5rem;
}
.market-us-item {
  background: #fff;
  border-left: 4px solid var(--teal, #229fa8);
  padding: 22px 24px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.market-us-item h3 {
  color: #176970;
  font-size: 1.08rem;
  margin: 0 0 .6rem;
  font-weight: 600;
  line-height: 1.3;
}
.market-us-item p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.65;
  color: #3b4a52;
}
.market-us-item a {
  color: var(--teal, #229fa8);
  text-decoration: underline;
}

/* ── PROJETS ───────────────────────────────────────────────────── */
.market-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 1rem;
}
.market-project-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e0e9ec;
  text-decoration: none !important;
  transition: box-shadow .2s, transform .2s;
  display: block;
}
.market-project-card:hover {
  box-shadow: 0 6px 18px rgba(26, 43, 74, .1);
  transform: translateY(-2px);
  text-decoration: none !important;
}
.market-project-city {
  font-size: .82rem;
  color: var(--teal, #229fa8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.market-project-title {
  font-size: 1.05rem;
  color: #1a2b4a;
  font-weight: 600;
  margin-bottom: .8rem;
  line-height: 1.3;
}
.market-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
  color: #52616b;
}
.market-project-meta span {
  background: #f3fafb;
  padding: 3px 10px;
  border-radius: 12px;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.market-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1rem;
}
.market-faq-item {
  background: #fff;
  border: 1px solid #e0e9ec;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow .2s;
}
.market-faq-item[open] {
  box-shadow: 0 3px 12px rgba(26, 43, 74, .08);
  border-color: var(--teal, #229fa8);
}
.market-faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #1a2b4a;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 48px;
  line-height: 1.4;
}
.market-faq-item summary::-webkit-details-marker { display: none; }
.market-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal, #229fa8);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform .2s;
  line-height: 1;
}
.market-faq-item[open] summary::after {
  content: '−';
}
.market-faq-a {
  padding: 0 20px 18px;
  color: #3b4a52;
  font-size: .96rem;
  line-height: 1.7;
  border-top: 1px solid #f0f3f5;
  padding-top: 14px;
  margin-top: 0;
}
.market-faq-a p { margin: 0; }

/* ── Liste des guides piliers liés ──────────────────────────── */
.market-piliers-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.market-piliers-list li {
  background: #fff;
  border: 1px solid #e5ebed;
  border-left: 3px solid #229fa8;
  padding: 18px 20px;
  border-radius: 6px;
  font-size: .97rem;
  line-height: 1.55;
}
.market-piliers-list li a {
  color: #176970;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}
.market-piliers-list li a:hover { text-decoration: underline; }
.market-piliers-list li strong { color: #176970; }

/* ── CTA ────────────────────────────────────────────────────── */
.market-cta {
  background: linear-gradient(135deg, #229fa8 0%, #176970 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.market-cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin: 0 0 .8rem;
  line-height: 1.3;
}
.market-cta p {
  color: rgba(255, 255, 255, .92);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  font-size: 1.02rem;
  line-height: 1.65;
}
.market-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--teal-dark, #176970);
  font-weight: 600;
  padding: .95rem 2.4rem;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background .2s, transform .2s, box-shadow .2s;
  font-size: 1rem;
}
.market-cta-btn:hover {
  background: #5cdee6;
  color: #0e4a4f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .market-criteria-grid,
  .market-us-grid { grid-template-columns: 1fr; }
  .market-projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .market-hero { padding: 56px 0 48px; }
  .market-section { padding: 44px 0; }
  .market-projects-grid { grid-template-columns: 1fr; }
  .market-table { font-size: .85rem; }
  .market-table thead th,
  .market-table tbody th,
  .market-table tbody td { padding: 11px 12px; }
  .market-us-item { padding: 18px 18px; }
  .market-criteria-card { padding: 22px 18px; }
}
