/* ═══════════════════════════════════════════════════════════
   Trail du Grand Cabillonum - Forum Covoiturage
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.covoit-hero {
  background: linear-gradient(135deg, #3D2410 0%, #2A1A0A 100%);
  padding: 120px 24px 50px;
  text-align: center;
}
.covoit-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.covoit-hero-label {
  font-family: 'Cinzel', Georgia, serif;
  color: #C8882A;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.covoit-hero h1 {
  font-family: 'Cinzel', Georgia, serif;
  color: #F5EDD8;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}
.covoit-hero p {
  font-family: Georgia, serif;
  color: rgba(245, 237, 216, 0.6);
  font-size: 1rem;
  margin: 0;
}

/* ── Main ─────────────────────────────────────────────────── */
.covoit-main {
  background: #F5EDD8;
  padding: 40px 24px 60px;
  min-height: 60vh;
}
.covoit-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Flash messages ───────────────────────────────────────── */
.covoit-flash {
  padding: 14px 20px;
  border-radius: 6px;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  margin-bottom: 24px;
  animation: flashIn 0.3s ease;
}
.flash-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.flash-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── User bar ─────────────────────────────────────────────── */
.covoit-user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(61, 36, 16, 0.06);
  border-radius: 6px;
  margin-bottom: 24px;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: #3D2410;
}

/* ── Incitation banner ────────────────────────────────────── */
.covoit-incitation {
  background: linear-gradient(135deg, #3D2410 0%, #2A1A0A 100%);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  margin-bottom: 32px;
  border: 1px solid rgba(200, 136, 42, 0.3);
}
.covoit-incitation h2 {
  font-family: 'Cinzel', Georgia, serif;
  color: #E8B96A;
  font-size: 1.3rem;
  margin: 0 0 10px 0;
}
.covoit-incitation p {
  font-family: Georgia, serif;
  color: rgba(245, 237, 216, 0.7);
  font-size: 0.9rem;
  margin: 0 0 20px 0;
  line-height: 1.6;
}
.covoit-incitation-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Publish form ─────────────────────────────────────────── */
.covoit-publish {
  background: #f0ebe0;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 32px;
  border: 1px solid rgba(200, 136, 42, 0.2);
}
.covoit-publish h2 {
  font-family: 'Cinzel', Georgia, serif;
  color: #3D2410;
  font-size: 1.2rem;
  margin: 0 0 20px 0;
}
.covoit-publish-grid {
  display: grid;
  grid-template-columns: 1fr 120px 120px 130px;
  gap: 16px;
  margin-bottom: 16px;
}
.covoit-vehicule {
  font-style: italic;
  color: #9B6420;
}

/* ── Form elements ────────────────────────────────────────── */
.covoit-form-wrapper {
  max-width: 460px;
  margin: 0 auto;
  background: #f0ebe0;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid rgba(200, 136, 42, 0.2);
}
.covoit-form-wrapper h2 {
  font-family: 'Cinzel', Georgia, serif;
  color: #3D2410;
  font-size: 1.3rem;
  margin: 0 0 24px 0;
  text-align: center;
}
.covoit-field {
  margin-bottom: 16px;
}
.covoit-field label {
  display: block;
  font-family: Georgia, serif;
  color: #3D2410;
  font-size: 0.85rem;
  margin-bottom: 5px;
  font-weight: 600;
}
.covoit-field input,
.covoit-field textarea,
.covoit-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(200, 136, 42, 0.4);
  border-radius: 4px;
  background: #fff;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: #3D2410;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.covoit-field input:focus,
.covoit-field textarea:focus {
  outline: none;
  border-color: #C8882A;
  box-shadow: 0 0 0 3px rgba(200, 136, 42, 0.15);
}
.covoit-info {
  font-family: Georgia, serif;
  color: #6b5530;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}
.covoit-alt-link {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  color: #6b5530;
  margin-top: 16px;
}
.covoit-alt-link a {
  color: #C8882A;
  text-decoration: underline;
}
.covoit-privacy-note {
  font-family: Georgia, serif;
  font-size: 0.8rem;
  color: #9B6420;
  font-style: italic;
  margin-bottom: 16px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.covoit-btn {
  display: inline-block;
  background: #C8882A;
  color: #3D2410;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.covoit-btn:hover {
  background: #E8B96A;
  transform: translateY(-1px);
}
.covoit-btn-outline {
  background: transparent;
  border: 1px solid #C8882A;
  color: #C8882A;
}
.covoit-btn-outline:hover {
  background: rgba(200, 136, 42, 0.1);
  color: #E8B96A;
  border-color: #E8B96A;
}
.covoit-btn-small {
  display: inline-block;
  background: #C8882A;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.covoit-btn-small:hover {
  background: #9B6420;
}
.covoit-btn-small.covoit-btn-outline {
  background: transparent;
  border: 1px solid rgba(200, 136, 42, 0.5);
  color: #9B6420;
}
.covoit-btn-small.covoit-btn-outline:hover {
  border-color: #C8882A;
  color: #C8882A;
}
.covoit-btn-danger {
  background: #a04040;
  color: #fff;
}
.covoit-btn-danger:hover {
  background: #c04040;
}

/* ── Section title ────────────────────────────────────────── */
.covoit-section-title {
  font-family: 'Cinzel', Georgia, serif;
  color: #3D2410;
  font-size: 1.2rem;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(200, 136, 42, 0.3);
}

/* ── Cards ────────────────────────────────────────────────── */
.covoit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.covoit-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid rgba(200, 136, 42, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}
.covoit-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.covoit-card-mine {
  border-left: 3px solid #C8882A;
}
.covoit-card-context {
  margin-bottom: 20px;
  background: rgba(200, 136, 42, 0.05);
}
.covoit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.covoit-pseudo {
  font-family: 'Cinzel', Georgia, serif;
  color: #9B6420;
  font-size: 1rem;
  font-weight: 700;
}
.covoit-badge {
  background: #C8882A;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}
.covoit-card-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  color: #5a4228;
}
.covoit-date {
  color: #9B6420;
  opacity: 0.7;
  font-size: 0.8rem;
}
.covoit-card-texte {
  font-family: Georgia, serif;
  font-size: 0.88rem;
  color: #3D2410;
  line-height: 1.6;
  margin: 12px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(200, 136, 42, 0.1);
}
.covoit-card-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

/* ── Empty state ──────────────────────────────────────────── */
.covoit-empty {
  text-align: center;
  padding: 40px 20px;
  background: rgba(200, 136, 42, 0.06);
  border-radius: 8px;
  border: 1px dashed rgba(200, 136, 42, 0.3);
}
.covoit-empty p {
  font-family: Georgia, serif;
  color: #9B6420;
  font-size: 0.9rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.covoit-footer {
  background: #2A1A0A;
  padding: 30px 24px;
  text-align: center;
}
.covoit-footer-inner {
  max-width: 800px;
  margin: 0 auto;
}
.covoit-footer p {
  font-family: Georgia, serif;
  color: rgba(245, 237, 216, 0.4);
  font-size: 0.8rem;
  margin: 10px 0 0 0;
}
.covoit-footer a {
  color: rgba(200, 136, 42, 0.6);
  text-decoration: underline;
}

/* ── Nav active ───────────────────────────────────────────── */
.nav-active {
  color: #E8B96A !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .covoit-hero { padding: 100px 20px 40px; }
  .covoit-hero h1 { font-size: 1.6rem; }
  .covoit-publish-grid {
    grid-template-columns: 1fr;
  }
  .covoit-card-details {
    flex-direction: column;
    gap: 6px;
  }
  .covoit-user-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .covoit-form-wrapper {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .covoit-hero h1 { font-size: 1.3rem; }
  .covoit-publish { padding: 20px 16px; }
  .covoit-card { padding: 16px; }
  .covoit-incitation { padding: 24px 16px; }
}
