/* ================================================================================
   LICENCETAXI.FR — CHARTE GRAPHIQUE UNIQUE (V5)
   --------------------------------------------------------------------------------
   UNE seule source de vérité pour toute la couleur, la typo et les composants.
   Charge ce fichier EN DERNIER sur chaque page (après navbar.css, dashboard.css…)
   pour garantir la cohérence. Il remplace theme-beige.css.

   Palette dérivée du pack d'icônes SVG et de la maquette de menu :
     • Orange  #C85A00  (accent principal, CTA, liens actifs)
     • Encre   #171717  (texte, traits d'icônes)
     • Crème   #FBF7EF  (fond de page)
   ================================================================================ */

:root {
  /* ---- Couleurs de marque ---- */
  --lt-orange:      #C85A00;
  --lt-orange-600:  #A94A00;   /* survol / pressé */
  --lt-orange-400:  #E06E12;   /* dégradés */
  --lt-orange-50:   #FBEEE2;   /* teinte de fond douce */
  --lt-orange-tint: #FDF4EB;   /* highlight beige des blocs « GRATUIT » */

  --lt-ink:         #171717;   /* texte principal / traits */
  --lt-ink-700:     #3A3733;
  --lt-ink-500:     #6B655D;   /* texte secondaire */
  --lt-ink-300:     #9A938A;   /* texte tertiaire / placeholders */

  --lt-cream:       #FBF7EF;   /* fond global */
  --lt-paper:       #FFFFFF;   /* cartes / surfaces */
  --lt-line:        #ECE6DA;   /* bordures */
  --lt-line-soft:   #F3EEE4;

  --lt-success:     #1E7A47;
  --lt-success-bg:  #E3F3E9;
  --lt-warning:     #B4690E;
  --lt-warning-bg:  #FCEFD8;
  --lt-danger:      #C0342B;
  --lt-danger-bg:   #FBE7E5;
  --lt-info:        #1E5FA8;
  --lt-info-bg:     #E3EEFB;

  /* ---- Rayons / ombres / rythme ---- */
  --lt-r-sm: 8px;
  --lt-r:    12px;
  --lt-r-lg: 18px;
  --lt-r-pill: 999px;
  --lt-shadow-sm: 0 1px 2px rgba(23,23,23,.06);
  --lt-shadow:    0 4px 16px rgba(23,23,23,.08);
  --lt-shadow-lg: 0 12px 40px rgba(23,23,23,.14);
  --lt-focus: 0 0 0 3px rgba(200,90,0,.28);

  /* ---- Typo ---- */
  --lt-font: "Inter", "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ================================================================
     COMPATIBILITÉ : on repointe les anciennes variables « raspberry/pink »
     vers l'orange de la charte, pour que TOUT le legacy devienne cohérent
     sans devoir réécrire chaque fichier.
     ================================================================ */
  --raspberry:        var(--lt-orange);
  --raspberry-dark:   var(--lt-orange-600);
  --raspberry-light:  var(--lt-orange-400);
  --orange-soft:      var(--lt-orange-50);
  --pink:             var(--lt-orange);
  --pink-dark:        var(--lt-orange-600);
  --primary:          var(--lt-orange);
  --primary-dark:     var(--lt-orange-600);
  --accent:           var(--lt-orange);
  --gray-bg:          var(--lt-cream);
  --gray-bg-light:    var(--lt-cream);
  --gradient: linear-gradient(135deg, var(--lt-orange) 0%, var(--lt-orange-400) 100%) !important;
}

/* Neutralise les anciens roses codés en dur les plus fréquents */
[style*="#ff2e7e"], [style*="#c4456c"] { /* laissé volontairement vide : voir overrides ci-dessous */ }

/* ================================================================================
   BASE
   ================================================================================ */
html, body {
  background: var(--lt-cream) !important;
  color: var(--lt-ink);
  font-family: var(--lt-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--lt-orange); }
a:hover { color: var(--lt-orange-600); }
::selection { background: var(--lt-orange); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--lt-focus); border-radius: var(--lt-r-sm); }
::placeholder { color: var(--lt-ink-300); }

/* ================================================================================
   BOUTONS  (.lt-btn + variantes)
   ================================================================================ */
.lt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .72rem 1.15rem; border-radius: var(--lt-r);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s;
  white-space: nowrap;
}
.lt-btn:active { transform: translateY(1px); }
.lt-btn svg { width: 18px; height: 18px; }

.lt-btn--primary { background: var(--lt-orange); color: #fff; box-shadow: var(--lt-shadow-sm); }
.lt-btn--primary:hover { background: var(--lt-orange-600); color: #fff; box-shadow: var(--lt-shadow); }

.lt-btn--ghost { background: var(--lt-paper); color: var(--lt-ink); border-color: var(--lt-line); }
.lt-btn--ghost:hover { border-color: var(--lt-orange); color: var(--lt-orange); }

.lt-btn--dark { background: var(--lt-ink); color: #fff; }
.lt-btn--dark:hover { background: #000; color: #fff; }

.lt-btn--link { background: none; border: none; color: var(--lt-orange); padding: .35rem .2rem; }
.lt-btn--sm { padding: .5rem .8rem; font-size: .85rem; }
.lt-btn--lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.lt-btn--block { width: 100%; }

/* ================================================================================
   BADGES  (statuts d'annonce + GRATUIT)
   ================================================================================ */
.lt-badge {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: .28em .6em; border-radius: var(--lt-r-pill); text-transform: uppercase;
}
.lt-badge--gratuit { background: var(--lt-orange); color: #fff; }
.lt-badge--soft    { background: var(--lt-orange-50); color: var(--lt-orange-600); }

.status-badge, .lt-status {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .74rem; font-weight: 700; padding: .3em .7em; border-radius: var(--lt-r-pill);
  text-transform: capitalize;
}
.status-publiee,   .lt-status--publiee   { background: var(--lt-success-bg); color: var(--lt-success); }
.status-pending,   .lt-status--pending   { background: var(--lt-warning-bg); color: var(--lt-warning); }
.status-vendue,    .lt-status--vendue    { background: var(--lt-info-bg);    color: var(--lt-info); }
.status-refusee,   .lt-status--refusee   { background: var(--lt-danger-bg);  color: var(--lt-danger); }
.status-expiree,   .lt-status--expiree,
.status-suspendue, .lt-status--suspendue { background: #EFEDE7; color: var(--lt-ink-500); }

/* ================================================================================
   CARTES / SURFACES
   ================================================================================ */
.lt-card {
  background: var(--lt-paper); border: 1px solid var(--lt-line);
  border-radius: var(--lt-r-lg); box-shadow: var(--lt-shadow-sm);
}
.lt-card--pad { padding: 1.25rem 1.35rem; }
.lt-card--hl  { background: var(--lt-orange-tint); border-color: #F0E2D0; }

/* ================================================================================
   FORMULAIRES
   ================================================================================ */
.lt-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.lt-field > label { font-weight: 600; font-size: .9rem; color: var(--lt-ink-700); }
.lt-input, .lt-select, .lt-textarea {
  width: 100%; font: inherit; color: var(--lt-ink);
  background: var(--lt-paper); border: 1px solid var(--lt-line);
  border-radius: var(--lt-r); padding: .72rem .9rem; transition: border-color .15s, box-shadow .15s;
}
.lt-input:focus, .lt-select:focus, .lt-textarea:focus {
  border-color: var(--lt-orange); box-shadow: var(--lt-focus); outline: none;
}
.lt-textarea { min-height: 120px; resize: vertical; }

/* ================================================================================
   TABLEAUX
   ================================================================================ */
.lt-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lt-table th {
  text-align: left; font-weight: 700; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .03em; color: var(--lt-ink-500);
  padding: .7rem .8rem; border-bottom: 2px solid var(--lt-line);
}
.lt-table td { padding: .8rem; border-bottom: 1px solid var(--lt-line-soft); vertical-align: middle; }
.lt-table tbody tr:hover, .lt-table tbody tr:hover { background: var(--lt-orange-tint); }

/* ================================================================================
   MENUS (maquette : titres orange en capitales, bloc « GRATUIT » beige à puce)
   ================================================================================ */
.lt-menu-head {
  color: var(--lt-orange); font-weight: 800; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; margin: .2rem 0 .6rem;
}
.lt-menu-hl {
  background: var(--lt-orange-tint); border-radius: var(--lt-r);
  padding: .85rem 1rem; display: flex; gap: .75rem; align-items: center;
  position: relative;
}
.lt-menu-hl::before {
  content: ""; position: absolute; left: .4rem; top: 50%;
  width: 8px; height: 8px; border-radius: 50%; background: var(--lt-orange);
  transform: translateY(-50%);
}

/* Icônes de menu au bon gabarit + couleur cohérente */
.lt-ico { width: 40px; height: 40px; flex: none; color: var(--lt-ink); }
.lt-ico svg { width: 100%; height: 100%; display: block; }
.lt-ico .accent { stroke: var(--lt-orange); }

/* ================================================================================
   CLOCHE DE NOTIFICATIONS  (navbar) + menu déroulant
   ================================================================================ */
.lt-bell { position: relative; display: inline-flex; }
.lt-bell-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--lt-r);
  background: var(--lt-paper); border: 1px solid var(--lt-line);
  color: var(--lt-ink); cursor: pointer; transition: border-color .15s, color .15s;
}
.lt-bell-btn:hover { border-color: var(--lt-orange); color: var(--lt-orange); }
.lt-bell-btn svg { width: 20px; height: 20px; }
.lt-bell-dot {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: var(--lt-r-pill); background: var(--lt-orange);
  color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center;
  border: 2px solid var(--lt-paper); display: none;
}
.lt-bell-dot.show { display: block; }

.lt-notif-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(380px, 92vw);
  background: var(--lt-paper); border: 1px solid var(--lt-line);
  border-radius: var(--lt-r-lg); box-shadow: var(--lt-shadow-lg);
  overflow: hidden; z-index: 1200; display: none;
}
.lt-notif-menu.open { display: block; animation: ltPop .14s ease; }
@keyframes ltPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lt-notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem; border-bottom: 1px solid var(--lt-line);
  font-weight: 800; font-size: .95rem;
}
.lt-notif-head button { background: none; border: none; color: var(--lt-orange); font-weight: 600; cursor: pointer; font-size: .82rem; }
.lt-notif-list { max-height: 60vh; overflow-y: auto; }
.lt-notif-item {
  display: flex; gap: .75rem; padding: .8rem 1rem; text-decoration: none;
  color: var(--lt-ink); border-bottom: 1px solid var(--lt-line-soft); transition: background .12s;
}
.lt-notif-item:hover { background: var(--lt-orange-tint); color: var(--lt-ink); }
.lt-notif-item.unread { background: var(--lt-orange-50); }
.lt-notif-ico {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lt-orange-50); color: var(--lt-orange-600);
}
.lt-notif-ico svg { width: 18px; height: 18px; }
.lt-notif-body { min-width: 0; }
.lt-notif-title { font-weight: 700; font-size: .88rem; line-height: 1.3; }
.lt-notif-text { font-size: .82rem; color: var(--lt-ink-500); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lt-notif-time { font-size: .72rem; color: var(--lt-ink-300); margin-top: 3px; }
.lt-notif-empty { padding: 2.2rem 1rem; text-align: center; color: var(--lt-ink-300); font-size: .9rem; }
.lt-notif-foot { padding: .7rem 1rem; text-align: center; border-top: 1px solid var(--lt-line); }
.lt-notif-foot a { font-weight: 700; font-size: .85rem; }

/* ================================================================================
   TOASTS (retour d'action : « Message envoyé », « Ajouté aux favoris »…)
   ================================================================================ */
#lt-toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: .5rem; z-index: 2000; }
.lt-toast {
  background: var(--lt-ink); color: #fff; padding: .8rem 1.1rem; border-radius: var(--lt-r);
  box-shadow: var(--lt-shadow-lg); font-weight: 600; font-size: .9rem;
  display: flex; align-items: center; gap: .6rem; animation: ltPop .16s ease;
}
.lt-toast--ok { background: var(--lt-success); }
.lt-toast--err { background: var(--lt-danger); }

/* ================================================================================
   ACCESSIBILITÉ / RESPONSIVE
   ================================================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* ===== V5.3 — Photos des annonces dans les cartes ===== */
.annonce-card-visual{position:relative;overflow:hidden}
.annonce-card-visual.has-photo{padding:0}
.annonce-card-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.annonce-card-visual.has-photo .annonce-card-dept{position:absolute;top:.6rem;left:.6rem;z-index:2;background:rgba(23,23,23,.78);color:#fff;border-radius:8px;padding:.15rem .5rem}
.annonce-card-visual.has-photo .annonce-card-badge-vedette{z-index:2}
.annonce-card:hover .annonce-card-photo{transform:scale(1.04);transition:transform .35s ease}


/* ===== V5.9 — Boutons de soumission des formulaires : orange charte ===== */
.form-submit, .lt-form-submit, button[type="submit"].form-submit {
  background: linear-gradient(135deg, var(--lt-orange) 0%, var(--lt-orange-400) 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(200,90,0,.30) !important;
}
.form-submit:hover, .lt-form-submit:hover {
  box-shadow: 0 10px 30px rgba(200,90,0,.40) !important;
}


/* ===== V5.9.2 — Formats publicitaires maîtrisés ===== */
.lt-pub-band{max-width:1180px;margin:.7rem auto 0;padding:0 1rem;text-align:center}
.lt-pub-band .ad-slot{display:inline-block;position:relative;max-width:728px;width:100%}
.lt-pub-band .ad-slot img{width:100%;max-height:90px;height:auto;object-fit:contain;border-radius:10px;border:1px solid var(--lt-line);background:#fff;display:block}
.ad-badge{position:absolute;top:4px;right:6px;background:rgba(23,23,23,.65);color:#fff;font-size:.6rem;font-weight:800;letter-spacing:.05em;padding:.1rem .4rem;border-radius:5px;pointer-events:none}
@media(max-width:640px){.lt-pub-band .ad-slot img{max-height:60px}}

/* Popup publicitaire */
.lt-pub-popup-overlay{position:fixed;inset:0;background:rgba(23,23,23,.55);z-index:99998;display:flex;align-items:center;justify-content:center;padding:1.2rem;animation:ltFade .25s ease}
.lt-pub-popup{position:relative;background:#fff;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35);max-width:min(480px,92vw);max-height:80vh;overflow:hidden}
.lt-pub-popup img{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain}
.lt-pub-popup .ad-badge{top:10px;left:10px;right:auto}
.lt-pub-popup-close{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:50%;border:none;background:rgba(23,23,23,.75);color:#fff;font-size:1rem;font-weight:700;cursor:pointer;line-height:1}
.lt-pub-popup-close:hover{background:#171717}
@keyframes ltFade{from{opacity:0}to{opacity:1}}
