/* =========================
   PAGE ANNONCES — STYLE FIGMA
========================= */

.funky-annonces-wrap {
  max-width: 1180px;
  margin: 70px auto;
  padding: 0 18px;
}

.funky-page-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  margin-bottom: 36px;
  color: #111;
}

.funky-annonces-grid {
  display: grid;
  grid-template-columns: 1.15fr 1px 0.85fr; 
  gap: 28px;
  align-items: start;
}

.funky-annonces-sep {
  width: 1px;
  background: #d9d9d9;
  min-height: 520px;
}

/* -------------------------
   COLONNE GAUCHE
------------------------- */
.funky-annonces-subtitle {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #111;
}

.funky-annonces-list {
  border-top: 1px solid #d9d9d9;
}

/*  item style “liste”  */
.funky-annonce-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;

  padding: 18px 0;
  margin: 0;
  border-bottom: 1px solid #d9d9d9;
}

.funky-annonce-meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.funky-annonce-item-title {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #111;
}

.funky-annonce-cat {
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 10px;
  color: #111;
}

.funky-annonce-desc {
  font-size: 12px;
  line-height: 1.55;
  color: #222;
  margin-bottom: 10px;
  max-width: 70ch;
}

.funky-annonce-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #777;
  font-style: normal;
}

.funky-dot {
  width: 5px;
  height: 5px;
  background: #8C144E;
  border-radius: 50%;
}

.funky-annonce-card.is-demo {
  opacity: 0.95; 
}

/* -------------------------
   COLONNE DROITE (FORM)
------------------------- */
.funky-form-card {
  background: #fff;
  border-radius: 40px;
  padding: 34px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  position: sticky;
  top: 120px;
}

.funky-form-card h2 {
  font-family: 'Fredoka One', sans-serif;
  margin-bottom: 8px;
  font-size: 22px;
  color: #111;
}

.funky-form-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 22px;
}

.funky-annonce-form label {
  display: block;
  font-weight: 800;
  font-size: 12px;
  margin: 14px 0 8px;
  color: #111;
}

.funky-annonce-form input,
.funky-annonce-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: #f1f1f1;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
}

.funky-annonce-form textarea {
  height: 120px;
  resize: none;
}

.funky-btn-submit {
  background: #8C144E;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px;
  width: 100%;
  font-weight: 900;
  cursor: pointer;
  margin-top: 22px;
  transition: 0.3s;
}

.funky-btn-submit:hover {
  background: #FBBD40;
  color: #8C144E;
}

.funky-form-foot {
  font-size: 12px;
  color: #888;
  margin-top: 14px;
}

/* -------------------------
   MOBILE (popup formulaire)
------------------------- */
.funky-mobile-add-btn { display: none; }

@media (max-width: 900px) {
  .funky-annonces-grid {
    grid-template-columns: 1fr;
  }

  .funky-annonces-sep { display: none; }

  .funky-annonces-right {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: white;
    z-index: 9999;
    padding: 40px 20px;
    overflow-y: auto;
  }

  .funky-annonces-right.is-open {
    display: block;
    animation: slideUp 0.3s ease;
  }

  .funky-mobile-add-btn {
    display: flex;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #8C144E;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 900;
    border: none;
    box-shadow: 0 10px 25px rgba(140, 20, 78, 0.4);
    z-index: 1000;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
  }

  .funky-form-card { position: relative; top: 0; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
/* Auteur cliquable : effet hover/focus (bleu) */
.funky-annonce-author a,
.funky-annonce-author a:visited{
  color: inherit;              
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.funky-annonce-author a:hover,
.funky-annonce-author a:focus{
  color: #1e73be;             
  text-decoration: underline;
  outline: none;
}
/* ==========================================
   DESKTOP RESPONSIVE — Annonces (toutes tailles PC)
   ========================================== */
@media (min-width: 901px){

  .funky-annonces-wrap{
    padding-left: clamp(18px, 3vw, 60px);
    padding-right: clamp(18px, 3vw, 60px);
  }

  /*  Grille flexible :
     - gauche peut rétrécir proprement
     - droite reste lisible (min/max)
     - séparateur reste 1px */
  .funky-annonces-grid{
    grid-template-columns: minmax(0, 1fr) 1px minmax(320px, 420px);
    gap: clamp(18px, 3vw, 28px);
  }

  /*  Le form doit prendre toute la largeur de la colonne droite */
  .funky-form-card{
    width: 100%;
  }

  /*  La ligne verticale suit la hauteur visuelle  */
  .funky-annonces-sep{
    min-height: 100%;
    align-self: stretch;
  }
}

/* (Optionnel) Ultra-wide : un peu + d’air sur très grands écrans */
@media (min-width: 1600px){
  .funky-annonces-wrap{
    max-width: 1280px;
  }
}
