/* ==========================================================================
   ERP Lyon - Le Magazine Urbain Lyonnais
   Custom Stylesheet
   ========================================================================== */

:root {
  --bleu-nuit: #1A237E;
  --orange: #E65100;
  --orange-light: #FF8F00;
  --gris-clair: #F5F5F5;
  --texte: #212121;
  --blanc: #FFFFFF;
  --gris-moyen: #757575;
  --gris-border: #E0E0E0;
}

/* ---------- Base ---------- */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--texte);
  background-color: var(--blanc);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--bleu-nuit);
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--bleu-nuit);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Navbar ---------- */
.navbar-erp {
  background-color: var(--blanc);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0.6rem 0;
  transition: box-shadow 0.3s ease;
}

.navbar-erp .navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-erp .nav-link {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--texte);
  padding: 0.5rem 1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.navbar-erp .nav-link:hover,
.navbar-erp .nav-link.active {
  color: var(--orange);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ---------- Hero Section ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--bleu-nuit) 0%, #283593 100%);
  color: var(--blanc);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--blanc);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

.hero-section h1 {
  color: var(--blanc);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-section .lead {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ---------- Article Hero ---------- */
.article-hero {
  background: linear-gradient(135deg, var(--bleu-nuit) 0%, #283593 100%);
  color: var(--blanc);
  padding: 4rem 0 3rem;
  margin-bottom: 2rem;
}

.article-hero h1 {
  color: var(--blanc);
  font-size: 2.4rem;
}

.article-hero .article-meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- Cards ---------- */
.card-article {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card-article:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-article .card-img-top {
  height: 220px;
  object-fit: cover;
}

.card-article .card-body {
  padding: 1.5rem;
}

.card-article .card-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card-article .card-text {
  font-size: 0.92rem;
  color: var(--gris-moyen);
  line-height: 1.6;
}

.card-article .card-footer {
  background: transparent;
  border-top: 1px solid var(--gris-border);
  padding: 0.75rem 1.5rem;
}

.card-category {
  display: inline-block;
  background: var(--orange);
  color: var(--blanc);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.card-date {
  font-size: 0.82rem;
  color: var(--gris-moyen);
}

/* ---------- Section Titles ---------- */
.section-title {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.section-title-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Content ---------- */
.content-section {
  padding: 4rem 0;
}

.content-section.bg-light {
  background-color: var(--gris-clair);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content img {
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.article-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--gris-clair);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gris-moyen);
}

.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* ---------- Sidebar ---------- */
.sidebar-widget {
  background: var(--blanc);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.sidebar-widget h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 1rem;
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gris-border);
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sidebar-widget ul li a {
  color: var(--texte);
  font-size: 0.92rem;
}

.sidebar-widget ul li a:hover {
  color: var(--orange);
}

/* ---------- Author Box ---------- */
.author-box {
  background: var(--gris-clair);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.author-box .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bleu-nuit);
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-box .author-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bleu-nuit);
  margin-bottom: 0.25rem;
}

.author-box .author-bio {
  font-size: 0.9rem;
  color: var(--gris-moyen);
  line-height: 1.6;
}

/* ---------- Contact Form ---------- */
.contact-form .form-control {
  border: 1px solid var(--gris-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(230,81,0,0.15);
}

.contact-form label {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* ---------- Buttons ---------- */
.btn-erp {
  background: var(--orange);
  color: var(--blanc);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.8rem;
  border-radius: 8px;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-erp:hover {
  background: var(--bleu-nuit);
  color: var(--blanc);
  transform: translateY(-2px);
}

.btn-outline-erp {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.6rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-erp:hover {
  background: var(--orange);
  color: var(--blanc);
}

/* ---------- Footer ---------- */
.footer-erp {
  background: var(--bleu-nuit);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}

.footer-erp h5 {
  color: var(--blanc);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-erp a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-erp a:hover {
  color: var(--orange);
}

.footer-erp ul {
  list-style: none;
  padding: 0;
}

.footer-erp ul li {
  margin-bottom: 0.5rem;
}

.footer-erp .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin-right: 0.5rem;
  transition: background 0.3s ease;
}

.footer-social a:hover {
  background: var(--orange);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--blanc);
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page h1 {
  font-size: 8rem;
  color: var(--orange);
  line-height: 1;
}

.error-page p {
  font-size: 1.2rem;
  color: var(--gris-moyen);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-erp {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumb-erp .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb-erp .breadcrumb-item.active {
  color: rgba(255,255,255,0.9);
}

.breadcrumb-erp .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* ---------- Legal Pages ---------- */
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p, .legal-content li {
  font-size: 0.95rem;
  color: var(--gris-moyen);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .article-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3.5rem 0 3rem;
  }
  .hero-section h1 {
    font-size: 1.9rem;
  }
  .article-hero h1 {
    font-size: 1.7rem;
  }
  .content-section {
    padding: 2.5rem 0;
  }
  .card-article .card-img-top {
    height: 180px;
  }
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.6rem;
  }
  .article-hero h1 {
    font-size: 1.4rem;
  }
  .hero-section .lead {
    font-size: 1rem;
  }
  .card-article .card-img-top {
    height: 160px;
  }
  .error-page h1 {
    font-size: 5rem;
  }
  .footer-erp {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
}