/* ===== Thème ===== */
:root{
  --bg:#f3f4f6;
  --fg:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --card:#ffffff;
  --primary:#3b82f6;
  --primary-soft:rgba(59,130,246,0.06);
  --shadow:0 12px 30px rgba(15,23,42,0.14);
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
}

body{
  background:var(--bg);
  color:var(--fg);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
}

/* ===== Layout ===== */
.container{
  max-width:1120px;
  margin:0 auto;
  padding:16px;
}

.site-main{
  padding-top:72px; /* pour libérer la barre */
}

/* ===== Header / bandeau ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(248,250,252,0.98);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(10px);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:inherit;
}

.brand-logo{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--primary-soft);
  font-size:18px;
}

.brand-title{
  font-weight:700;
  letter-spacing:0.02em;
}

.main-nav{
  display:flex;
  gap:16px;
  font-size:14px;
}

.main-nav a{
  text-decoration:none;
  color:var(--muted);
  padding:6px 10px;
  border-radius:999px;
  transition:background .15s ease,color .15s ease;
}

.main-nav a:hover{
  background:var(--primary-soft);
  color:var(--primary);
}

/* ===== Hero / titres ===== */
.page-title{
  margin:0 0 4px;
  font-size:26px;
}

.page-subtitle{
  margin:0 0 18px;
  color:var(--muted);
}

/* ===== Grilles ===== */
.grid{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  gap:22px;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
}

/* Cartes génériques */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(15,23,42,0.08);
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
  border-color:rgba(59,130,246,0.32);
}

.card-body{
  padding:12px 14px 14px;
}

/* Vignettes images */
.thumb{
  position:relative;
  width:100%;
  overflow:hidden;
  background:#000;
}

.thumb--sm{ height:400px; }
.thumb--md{ height:475px; }

.thumb img,
.thumb picture,
.thumb video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Texte */
h1,h2,h3{
  margin:0 0 10px;
  line-height:1.25;
}

h2{ font-size:22px; }
h3{ font-size:18px; }

p{ margin:6px 0 10px; }

.meta{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:8px;
}

.meta-title{
  font-weight:600;
}

.price{
  font-weight:700;
  color:#111827;
}

.desc{
  margin-top:4px;
  color:var(--muted);
  font-size:14px;
}

/* Tags */
.chips{ margin-top:6px; }
.chip{
  display:inline-block;
  font-size:11px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:3px 8px;
  border-radius:999px;
  margin-right:6px;
}

/* Blocs */
.block{
  margin-bottom:28px;
}

.list-clean{
  padding-left:18px;
  margin:8px 0;
}

/* Carte entreprise sur la home */
.company-card-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
}

.company-logo{
  width:80px;
  height:80px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid var(--border);
}

.company-region{
  font-size:12px;
  color:var(--muted);
}

/* Bouton */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:500;
  text-decoration:none;
  border:1px solid var(--primary);
  color:var(--primary);
  background:#fff;
  transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}

.btn:hover{
  background:var(--primary);
  color:#fff;
  box-shadow:0 8px 20px rgba(37,99,235,0.35);
}

/* ===== Petite carte vidéo (compacte partout) ===== */
.video-card{
  max-width: 340px;        /* taille max sur PC et mobile */
  margin: 0 auto 20px;     /* centré */
}

.video-card .thumb{
  height: 180px;           /* petite hauteur pour la vidéo */
}

.video-card video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Footer */
.site-footer{
  margin-top:40px;
  border-top:1px solid var(--border);
  padding:20px 0 40px;
  font-size:13px;
  color:var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 640px){
  .header-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .main-nav{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}
