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

/* ——— BASE ——— */
body {
    font-family: system-ui, sans-serif;
    background: #f5f5f5;
    color: #111;
    font-size: 18px; /* GROS TEXTE MOBILE */
    line-height: 1.6;
    padding-bottom: 40px;
}

.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* Images responsives partout */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Images sur la page événement */
.event-image {
    margin: 16px 0;
}

.event-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ——— HEADER SIMPLE (pages événements) ——— */
.header {
    background: #1f2937;
    padding: 22px 0;
    text-align: center;
}

.header h1 {
    font-size: 22px;
    color: #fff;
}

.header p {
    font-size: 15px;
    color: #cbd5e1;
}

/* ——— FORMULAIRE ÉVÉNEMENTS ——— */
.form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 24px auto 32px;
    max-width: 640px;
}

.form-card h1 {
    font-size: 24px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111827;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    font-family: inherit;
    background: #f9fafb;
}

.form-group input[type="file"] {
    padding: 6px 4px;
    background: transparent;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

/* Bouton du formulaire */
.form-card .btn {
    margin-top: 16px;
}

/* ——— BOUTONS GÉNÉRAUX ——— */
.btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 18px;
    background: #2563eb; /* BLEU */
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
    margin-top: 12px;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    background: #1e4fd1;
    transform: translateY(-1px);
}

/* ——— TITRES DE SECTIONS ——— */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0 10px;
}

/* ——— CARTE ÉVÉNEMENT ——— */
.event-card {
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

/* IMAGE LISTE */
.event-thumb {
    width: 100%;
    border-radius: 12px;
    max-height: 240px;
    object-fit: cover;
    margin-bottom: 12px;
}

/* TITRE */
.event-title a {
    font-size: 20px;
    color: #1e40af;
    text-decoration: none;
    font-weight: 700;
}

.event-title a:hover {
    text-decoration: underline;
}

/* META */
.event-meta {
    font-size: 16px;
    color: #555;
    margin: 8px 0;
}

/* DESCRIPTION TRONQUÉE */
.event-excerpt {
    font-size: 17px;
    color: #333;
    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BOUTON “VOIR L’ÉVÉNEMENT / FICHE” (secondaire, orange) */
.event-more {
    display: inline-block;
    padding: 12px 18px;
    background: #f97316;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 10px;
}

/* ——— PARTAGE ——— */
.share-wrapper {
    margin-top: 20px;
    text-align: center;
}

.btn-share {
    background: #ffdd88;
    color: #2b235a;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-share:hover {
    background: #ffd366;
    transform: translateY(-1px);
}

.share-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.share-modal-content {
    background: #ffffff;
    max-width: 420px;
    width: 100%;
    border-radius: 12px;
    padding: 20px 22px 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    position: relative;
}

.share-modal-close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.share-modal-close:hover {
    color: #666;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.share-btn {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.share-facebook { background: #1877f2; color: #fff; }
.share-whatsapp { background: #25d366; color: #fff; }
.share-x        { background: #000;    color: #fff; }
.share-copy     { background: #f3f3f7; color: #333; }

.share-info {
    font-size: 13px;
    color: #2b8a3e;
    text-align: center;
}

/* ————————————————— */
/* ——— MOBILE ——— */
/* ————————————————— */
@media (max-width: 768px) {

    .event-card {
        padding: 12px;
        display: block;
    }

    .event-thumb {
        width: 110px;
        height: 110px;
        object-fit: cover;
        border-radius: 10px;
        float: left;
        margin-right: 12px;
        margin-bottom: 8px;
    }

    .event-title a {
        font-size: 18px;
        line-height: 1.3;
    }

    .event-excerpt {
        font-size: 16px;
        clear: both;
        margin-top: 6px;
    }

    .event-more {
        margin-top: 10px;
        padding: 10px 14px;
        font-size: 15px;
    }

    .form-card {
        padding: 18px 14px;
        margin-top: 18px;
    }

    .form-card h1 {
        font-size: 22px;
    }
}

/* ————————————————— */
/* ——— DESKTOP ——— */
/* ————————————————— */
@media (min-width: 768px) {

    body {
        font-size: 17px;
    }

    .container {
        max-width: 900px;
    }

    .event-card {
        display: flex;
        flex-direction: row;
        gap: 18px;
        padding: 18px;
    }

    .event-thumb {
        width: 180px;
        max-height: 180px;
        margin-bottom: 0;
        float: none;
    }

    .event-card-body {
        flex: 1;
    }

    /* Bouton principal plus compact sur desktop */
    .btn {
        display: inline-block;
        width: auto;
        font-size: 16px;
    }
}

/* Bouton violet éventuellement utilisable ailleurs */
.btn-view {
    display: inline-block;
    background: #6b5cff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-view:hover {
    background: #5448d6;
    transform: translateY(-1px);
}

/* === FOOTER UNIFIÉ === */
.footer-site {
    background: #1f2937;
    color: #e5e7eb;
    padding: 26px 0 22px;
    margin-top: 40px;
    font-size: 15px;
    border-top: 1px solid #111;
}

/* Footer en colonne, centré */
.footer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand {
    font-weight: 700;
    font-size: 16px;
}

.footer-sub {
    font-size: 14px;
    opacity: 0.85;
}

.footer-meta {
    font-size: 13px;
    opacity: 0.85;
}

/* Ancien badge, plus utilisé mais on peut le garder au cas où */
.footer-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    margin-top: 4px;
}

/* Liens du footer : colonne + centrés */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    font-size: 14px;
    text-align: center;
    margin-top: 4px;
}


.footer-site a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.footer-site a:hover {
    text-decoration: underline;
}

/* Stats footer : pictos centrés */
.footer-stats {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-stats {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}


.footer-stat-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.footer-stat-number {
    font-weight: 700;
    font-size: 16px;
}

.footer-stat-label {
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
}

/* Responsive footer */
@media (max-width: 600px) {
    .footer-container {
        align-items: center;
    }
}

/* === NAV BAR === */
.main-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    margin-bottom: 25px;
}

/* Wrapper principal */
.main-nav .container.nav-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Style des liens */
.nav-item {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;

    padding: 8px 14px;
    border-radius: 10px;

    transition: background 0.2s ease, color 0.2s ease;
}

/* Survol */
.nav-item:hover {
    background: #f3f4f6;
    color: #b3363c;
}

/* Page active */
.nav-item.active {
    background: #b3363c;
    color: #fff;
}

/* --- NAVIGATION MOBILE SUPER COMPACT --- */
@media (max-width: 480px) {

  .main-nav {
      padding: 4px 0;
  }

  .main-nav .container.nav-wrapper {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;

      gap: 6px;
      padding: 4px 8px;
  }

  .nav-item {
      white-space: nowrap;
      font-size: 13px;
      padding: 5px 8px;
      border-radius: 6px;
  }
}



/* Bloc formulaire association / commerce */
.form-wrapper {
    max-width: 720px;
    margin: 30px auto 40px;
    background: #f7f7f8;
    border-radius: 10px;
    padding: 24px 20px 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.form-title {
    margin: 0 0 6px;
    font-size: 22px;
    text-align: center;
}

.form-intro {
    margin: 0 0 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.nice-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-row label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="url"],
.form-row input[type="tel"],
.form-row input[type="file"],
.form-row textarea {
    font: inherit;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
    box-sizing: border-box;
}

.form-row textarea {
    resize: vertical;
    min-height: 90px;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #b3363c;
    box-shadow: 0 0 0 1px rgba(179,54,60,0.15);
}

/* Deux colonnes sur écran large, 1 colonne sur mobile */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
}

.form-actions {
    margin-top: 18px;
    text-align: center;
}

.btn.btn-large {
    padding: 10px 22px;
    font-size: 16px;
    border-radius: 999px;
}

/* Cartes associations / commerces */
.card-association,
.card-commerce {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    margin-bottom: 18px;
    overflow: hidden;
}

/* Photo carrée flottante pour asso */
.asso-photo {
    float: left;
    width: 110px;
    height: 110px;
    margin-right: 14px;
    border-radius: 8px;
    overflow: hidden;
    background: #ddd;
}

.asso-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* rend la photo carrée propre */
}

/* Photo carrée flottante pour commerce */
.commerce-photo {
    float: left;
    width: 110px;
    height: 110px;
    margin-right: 14px;
    border-radius: 8px;
    overflow: hidden;
    background: #ddd;
}

.commerce-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-type {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.card-contact {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

/* Sur mobile, images au-dessus du texte pour asso/commerce */
@media (max-width: 600px) {
    .asso-photo,
    .commerce-photo {
        float: none;
        margin: 0 auto 12px;
        display: block;
    }
}

/* --- NAVIGATION MOBILE FIX --- */
@media (max-width: 480px) {

    /* On enlève le flex du container pour éviter les conflits */
    .main-nav .container {
        display: block;
        padding: 6px 16px;
    }

    /* Wrapper en flex, une ligne, scrollable si besoin */
    .nav-wrapper {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item {
        white-space: nowrap;      /* jamais de retour à la ligne */
        font-size: 14px;
        padding-bottom: 4px;
    }
}

/* --- POPUP NEWSLETTER --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 999;
}

.popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  z-index: 1000;
  font-family: system-ui, sans-serif;
}

.popup h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.popup-form input[type="text"],
.popup-form input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 16px;
}

.consent {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 15px;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 17px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.submit-btn:hover {
  background: #1e4fc5;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  font-size: 26px;
  line-height: 20px;
  background: none;
  cursor: pointer;
  opacity: 0.6;
}

.close-popup:hover {
  opacity: 1;
}

/* Optionnel : style secondaire du bouton */
.btn-secondary {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #2563eb;
}

/* Actions bar (bloc du haut avec bouton proposer un événement) */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin: 18px 0 10px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.actions-bar strong {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

.actions-bar p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Mobile : on passe en colonne pour la barre d’actions */
@media (max-width: 600px) {
    .actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .actions-bar > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
}
.lokalya-badge {
    display: inline-block;
    background: #f97316; /* ORANGE VIF */
    padding: 3px 10px;
    border-radius: 999px;
    margin: 0 4px;
}

.lokalya-badge a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

