/* ====== Base (site) ====== */
.cpx-home {
  background: #111;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================================================
   HEADER — liens à gauche, logo centré, fond gris clair
   ========================================================= */
.cpx-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  /* bandeau */
/*  background: #e9ecef;             /* gris clair */
  color: #111;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  /* conteneur */
  display: flex;                    /* aligne verticalement les éléments */
  align-items: center;
  min-height: 72px;
  padding: 0 20px;
}

/* décale sous la barre admin */
.admin-bar .cpx-header { top: 32px; }
@media (max-width: 782px){ .admin-bar .cpx-header { top: 46px; } }

/* --- NAV à gauche --- */
.cpx-nav{
  display: flex;
  gap: 14px;
  margin-right: auto;               /* pousse le reste vers la droite -> nav collée à gauche */
}
.cpx-nav a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #111;                      /* sombre sur fond clair */
  background: transparent;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, transform .1s ease;
}
.cpx-nav a:hover{
  background: rgba(0,0,0,.06);
  transform: translateY(-1px);
}

/* --- LOGO centré — reste centré quelle que soit la nav --- */
.cpx-logo{
  position: absolute;               /* on le détache du flux pour pouvoir le centrer parfait */
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;             /* évite d'intercepter les clics sur les liens en dessous si très petit écran */
}
.cpx-logo img{
  height: 40px;                     /* ajuste la taille du logo ici */
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
/* Si tu utilises un logo texte: */
.cpx-logo-text{
  font-weight: 800;
  font-size: 1.25rem;
  color: #111;
  white-space: nowrap;
  pointer-events: none;
}

/* ====== HERO ====== */

.cpx-hero {
    background: url('/wp-content/plugins/carlitoplex-secure-slider-wide/assets/hero-bg.png') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    border-radius: 10px;
}




.cpx-hero h1{
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 10px;
}
.cpx-hero p{
  margin: 0 0 16px;
  opacity: .85;
}
.cpx-hero-btns{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cpx-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #ff9800;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255,152,0,.25);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.cpx-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255,152,0,.35); background:#ffa733; }

/* ====== Sections centrées ====== */
.cpx-section{
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
}
.cpx-slider-home h2{ margin: 0 0 12px; font-size: 1.6rem; }

/* ====== Accès rapides ====== */
.cpx-quicklinks{
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.cpx-card{
  background: #1b1b1b;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cpx-card:hover{ transform: translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.55); background:#202020; }
.cpx-card h3{ margin: 0 0 8px; font-size: 1.1rem; }
.cpx-card p{ margin: 0 0 10px; opacity: .85; }

/* ====== Footer ====== */
.cpx-footer{
  text-align: center;
  padding: 20px;
  background: #000;
  margin-top: 40px;
  font-size: .95rem;
  color: #cfcfcf;
}

/* ====== Responsive ====== */
@media (max-width: 640px){
  .cpx-logo img{ height: 32px; }
  .cpx-nav{ gap: 10px; }
  .cpx-nav a{ padding: 7px 10px; }
}
