/* =========================================================
   THEME IMMOBILIER – DARK LUXE (CROWN INSPIRED)
   ========================================================= */

/* ================= VARIABLES ================= */
:root {

  /* Boutons – très sombres */
  --primary-color: #1e293b;
  --secondary-color: #0f172a;

  /* Fonds */
  --dark-main: #05070c;
  --dark-first: #0a0d16;
  --dark-seco: #0d111c;
  --dark-terc: #070a12;

  /* Blocs */
  --block-first: rgba(255,255,255,0.06);
  --block-seco: rgba(255,255,255,0.04);
  --block-terc: rgba(255,255,255,0.025);

  /* Bordures */
  --dark-border: rgba(255,255,255,0.06);

  /* Textes */
  --text-main: #f1f5f9;
  --text-soft: #b2bbca;
  --text-muted: #7b8496;

  /* Ombres */
  --shadow-soft: 0 10px 35px rgba(0,0,0,0.55);
  --shadow-hover: 0 22px 55px rgba(0,0,0,0.75);

  /* Radius (moins marqué) */
  --radius-lg: 10px;
  --radius-md: 6px;

  --font-main: 'Inter', 'Roboto', sans-serif;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BASE ================= */
body {
  font-family: var(--font-main);
  background: var(--dark-main);
  color: var(--text-main);
  line-height: 1.65;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
  background: rgba(6,8,13,0.35);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--dark-border);
}

.header .headerContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

/* ================= NAV ================= */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 34px;
}

.nav-menu a, a {
  color: var(--text-soft);
  font-weight: 500;
  text-decoration: none;
}

.nav-menu a:hover, a:hover {
  color: #fff;
}

/* =========================================================
   FULL SECTIONS (HIERARCHIE FORTE)
   ========================================================= */

.full-first {
  background: linear-gradient(
    180deg,
    #0c1020 0%,
    var(--dark-first) 100%
  );
  padding: 20px;
}

.full-seco {
  background: var(--dark-seco);
  padding: 55px 36px;
}

.full-terc {
  background: linear-gradient(
    180deg,
    var(--dark-terc) 0%,
    #04060b 100%
  );
  padding: 45px 32px;
}

.full-first , .full-seco, .full-terc{
    padding:20px;
    margin-bottom:20px
}


.width80{
width:80%;
margin:auto;
}

.full-first, .full-seco, .full-terc{
margin-top:20px;
}



/* =========================================================
   BLOCKS – EFFETS DIFFÉRENCIÉS
   ========================================================= */

.block-first,
.block-seco,
.block-terc {
  transition: all 0.4s ease;
  box-shadow: var(--shadow-soft);
  padding:20px;
  margin-top:20px;
}

/* 🔹 BLOCK FIRST – effet prestige (léger lift) */
.block-first {
  background: var(--block-first);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.block-first.block-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* 🔹 BLOCK SECO – effet glissé */
.block-seco.block-hover {
  background: var(--block-seco);
  padding: 26px;
  border-radius: var(--radius-md);
}

.block-seco.block-hover:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}

/* 🔹 BLOCK TERC – effet discret (fade) */
.block-terc {
  background: var(--block-terc);
  padding: 22px;
  border-radius: 4px;
}

.block-terc.block-hover:hover {
  background: rgba(255,255,255,0.04);
}


.block-hover{
  cursor:pointer;
}

.block-hover a{
  text-decoration: none;
}

.block-first.block-hover:hover,.block-hover .block-first:hover{
  transform: rotate(-1deg);
  box-shadow: 0 6px 12px var(--immo-dark-soft);
}
.block-seco.block-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px var(--secondary-color);
}
.block-terc.block-hover:hover {
  transform: rotate(-1deg);
  box-shadow: 0 6px 12px var(--tertiary-color);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1 {
  font-size: 2.6rem;
  margin-bottom: 22px;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--text-soft);
}

/* =========================================================
   BUTTONS – SOBRES & LUXE
   ========================================================= */

.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.9rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* PRIMARY – noir chic */
.btn-primary {
  background: var(--primary-color);
  color: #e5e7eb;
  border-color:  var(--primary-color);;
}

.btn-primary:hover {
  background: #020617;
   border-color:  var(--primary-color);
}

/* SECONDARY – encore plus sombre */
.btn-secondary {
  background: var(--secondary-color);
  color: var(--text-soft);
}

.btn-secondary:hover {
  background: #020617;
  color: #fff;
}

/* TERTIARY – texte */
.btn-tertiary {
  background: transparent;
  color: var(--text-muted);
  padding: 0;
}

.btn-tertiary:hover {
  color: #fff;
  text-decoration: underline;
}

/* =========================================================
   FOOTER (COMME HEADER)
   ========================================================= */

footer {
  background: rgba(6,8,13,0.35);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--dark-border);
  padding: 45px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

  .full-first { padding: 50px 24px; }
  .full-seco  { padding: 40px 22px; }
  .full-terc  { padding: 32px 20px; }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
}

/* Container principal */
.card-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Image */
.card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

/* Overlay sombre */
.card-image .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  transition: background 0.4s ease;
}

/* Contenu centré */
.card-image .card-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

/* Titre et texte toujours visibles */
.card-image .card-content h3,
.card-image .card-content p {
  opacity: 1;
  transition: transform 0.4s ease;
}

/* Bouton – caché par défaut */
.card-image .card-content .btn-hover {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  margin-top: 10px;
}

/* Hover effect */
.card-image:hover img {
  transform: scale(1.1);
}

.card-image:hover .card-overlay {
  background: rgba(0,0,0,0.45);
}

/* Bouton apparaît au hover seulement */
.card-image:hover .card-content .btn-hover {
  opacity: 1;
  transform: translateY(0);
}



/* === Table avec class .grid === */
table.grid {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  box-shadow: 0 4px 8px var(--shadow-color);
}
.grid th {
  background: var(--primary-color);
  color: var(--text-color);
  padding: 0.8rem;
  text-align: left;
}
.grid td {
  background: #111;
  padding: 0.8rem;
  border-bottom: 1px solid #222;
}
.grid tr:hover td {
  background: #1f1f1f;
}
