/* ================================================
   POROPASSE — Feuille de style principale
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pp-red:    #750808;
  --pp-red2:   #5a0606;
  --pp-orange: #e88400;
  --pp-black:  #000000;
  --pp-white:  #ffffff;
  --pp-gray:   #f4f4f4;
  --pp-text:   #222222;
  --pp-muted:  #666666;
  --radius:    8px;
  --radius-lg: 12px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--pp-text);
  background: var(--pp-white);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- BOUTONS ---- */
.btn-primary {
  background: var(--pp-red);
  color: var(--pp-white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  display: inline-block;
  transition: background .2s;
}
.btn-primary:hover { background: var(--pp-red2); }

.btn-orange {
  background: var(--pp-orange);
  color: var(--pp-white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  display: inline-block;
  transition: opacity .2s;
}
.btn-orange:hover { opacity: .85; }

.btn-outline {
  background: transparent;
  color: var(--pp-orange);
  border: 1.5px solid var(--pp-orange);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  display: inline-block;
  transition: background .2s;
}
.btn-outline:hover { background: rgba(232,132,0,.1); }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--pp-black);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-logo img { height: 40px; }
.navbar-links { display: flex; gap: 24px; align-items: center; }
.navbar-links a { color: #ccc; font-size: 14px; transition: color .2s; }
.navbar-links a:hover { color: var(--pp-orange); }
.navbar-actions { display: flex; gap: 10px; align-items: center; }

/* Hamburger — caché sur desktop par défaut */
.navbar-toggle { display: none; }

/* ---- HERO ---- */
.hero {
  background: #1a0000;
  padding: 60px 32px 50px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(232,132,0,.15);
  border: 1px solid rgba(232,132,0,.3);
  border-radius: 20px;
  padding: 4px 16px;
  color: var(--pp-orange);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--pp-white);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--pp-orange); }
.hero p {
  color: #aaa;
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 28px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-ghost {
  background: transparent;
  color: var(--pp-white);
  border: 1.5px solid rgba(255,255,255,.3);
  padding: 11px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.6); }

/* ---- RECHERCHE ---- */
.search-bar {
  background: var(--pp-white);
  padding: 14px 32px;
  border-bottom: 1px solid #eee;
}
.search-inner {
  display: flex;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.search-inner input,
.search-inner select {
  padding: 9px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
}
.search-inner input { flex: 1; min-width: 200px; }
.search-inner input:focus,
.search-inner select:focus { border-color: var(--pp-red); }

/* ---- SECTIONS ---- */
.section { padding: 36px 32px; }
.section-alt { background: var(--pp-gray); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-header h2 { font-size: 20px; font-weight: 600; }
.section-header a { color: var(--pp-red); font-size: 14px; }

/* ---- CARDS ÉVÉNEMENTS ---- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.event-card {
  background: var(--pp-white);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.event-card-img {
  height: 130px;
  background: #ddd;
  overflow: hidden;
  position: relative;
}
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.event-card-body { padding: 14px; }
.event-tags { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.tag-concert { background: #fff0e0; color: #a05800; }
.tag-vote    { background: #fff0e0; color: #a05800; }
.tag-gala    { background: #f0e8f8; color: #5a1fa3; }
.tag-sport   { background: #e8f5ee; color: #0a6a3a; }
.tag-lieu    { background: #f0e8e8; color: #750808; }
.event-card-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.event-card-meta  { font-size: 12px; color: var(--pp-muted); margin-bottom: 12px; }
.event-card-footer { display: flex; align-items: center; justify-content: space-between; }
.event-price { font-size: 15px; font-weight: 600; color: var(--pp-red); }

/* ---- VOTE LIVE ---- */
.vote-live-badge {
  background: var(--pp-orange);
  color: var(--pp-white);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: 2px;
}
.votes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.vote-card { background: var(--pp-white); border: 1px solid #eee; border-radius: var(--radius-lg); padding: 18px; }
.vote-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.vote-icon { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.vote-card-title { font-size: 14px; font-weight: 600; }
.vote-card-meta  { font-size: 12px; color: var(--pp-muted); }
.vote-bar-wrap   { margin-bottom: 10px; }
.vote-bar-label  { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.vote-bar-track  { height: 7px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.vote-bar-fill   { height: 100%; border-radius: 4px; transition: width .6s ease; }

/* ---- AVANTAGES ---- */
.avantages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.avantage-item { padding: 20px 16px; }
.avantage-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 14px; }
.avantage-item h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.avantage-item p  { font-size: 13px; color: var(--pp-muted); }

/* ---- FOOTER ---- */
.footer { background: var(--pp-black); padding: 28px 32px; text-align: center; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.footer p   { color: #666; font-size: 13px; margin-bottom: 12px; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #888; font-size: 12px; }
.footer-links a:hover { color: var(--pp-orange); }
.footer-copy { color: #444; font-size: 11px; margin-top: 14px !important; }

/* ================================================
   RESPONSIVE MOBILE (max 768px)
   ================================================ */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    padding: 10px 16px;
    position: relative;
    flex-wrap: wrap;
  }

  /* Hamburger visible sur mobile */
  .navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    order: 2;
    z-index: 101;
  }

  /* Liens cachés par défaut sur mobile */
  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    background: #111;
    padding: 8px 20px 16px;
    border-top: 1px solid #222;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
  }
  .navbar-links.open {
    display: flex;
  }
  .navbar-links a {
    padding: 13px 0;
    border-bottom: 1px solid #222;
    font-size: 15px;
    color: #eee;
    display: block;
  }
  .navbar-links a:last-child { border-bottom: none; }

  /* Boutons connexion/inscription cachés, ouverts avec menu */
  .navbar-actions {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 4;
    background: #111;
    padding: 12px 20px 20px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 998;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
  }
  .navbar-actions.open {
    display: flex;
  }

  /* Hero */
  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 26px; }

  /* Sections */
  .section { padding: 24px 16px; }
  .search-bar { padding: 12px 16px; }
}

/* ===================================================
   NAVBAR RESPONSIVE (home/index.php)
=================================================== */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .navbar {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    .navbar-links,
    .navbar-actions {
        display: none;
        flex-direction: column !important;
        width: 200px !important;
        max-width: 200px !important;
        background: #1a1a2e !important;
        position: absolute !important;
        top: 64px !important;
        right: 10px !important;
        left: auto !important;
        padding: 10px 16px !important;
        z-index: 999 !important;
        box-shadow: 0 8px 20px rgba(0,0,0,.25);
        border-radius: 10px;
    }

    .navbar-links.open,
    .navbar-actions.open {
        display: flex !important;
    }

    .navbar-actions.open {
        top: 280px !important;
    }

    .navbar-links a,
    .navbar-actions a {
        color: #ddd !important;
        text-decoration: none;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
        font-size: 14px;
        display: block !important;
        width: 100%;
        text-align: left;
    }

    .navbar-links a:last-child,
    .navbar-actions a:last-child {
        border-bottom: none;
    }

    .navbar-actions a.btn-primary {
        background: #750808 !important;
        color: #fff !important;
        text-align: center;
        border-radius: 8px;
        margin: 6px 0;
        border-bottom: none;
        padding: 9px;
    }

    .navbar-actions a.btn-outline {
        text-align: center;
        border: 1px solid rgba(255,255,255,.2);
        border-radius: 8px;
        margin: 6px 0;
        padding: 9px;
    }

    .navbar-actions span {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
        font-size: 13px;
    }
}