/* ======= Global Styles ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f4f6f9;
  color: #333;
  line-height: 1.7;
}

/* ======= Header ======= */
header {
  background: linear-gradient(to right, #004080, #0074d9);
  color: white;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* ======= Navigation ======= */
nav {
  background: #003366;
  padding: 15px;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  background: rgba(255, 255, 255, 0.1);
}

nav ul li a:hover {
  background: #0074d9;
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* ======= Mobile Navbar (Menu Burger) ======= */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 768px) {
  nav {
      position: relative;
  }

  .menu-toggle {
      display: block;
      position: absolute;
      right: 15px;
      top: 10px;
  }

  nav ul {
      display: none;
      flex-direction: column;
      background: #003366;
      width: 100%;
      padding: 15px 0;
      text-align: center;
      border-radius: 8px;
  }

  nav ul.active {
      display: flex;
  }

  nav ul li {
      margin-bottom: 10px;
  }
}

/* ======= Footer ======= */
footer {
  background: linear-gradient(to right, #004080, #0074d9);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

footer nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
}

footer nav ul li a {
  color: white;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}

footer nav ul li a:hover {
  text-decoration: underline;
  color: #d9ecff;
}

/* ======= Main Container ======= */
main {
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ======= Section Générale ======= */
section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

section:hover {
  transform: translateY(-5px);
}

/* ======= Section Introduction ======= */
.intro {
  text-align: center;
}

.intro h2 {
  color: #004080;
  font-size: 2rem;
  margin-bottom: 15px;
}

.intro p {
  font-size: 1.1rem;
  color: #555;
}

/* ======= Liens Rapides ======= */
.liens-rapides {
  text-align: center;
}

.liens-rapides .btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  display: inline-block;
  background: #004080;
  color: white;
  padding: 14px 22px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  background: #0074d9;
  transform: translateY(-3px);
}

/* ======= Articles Récents ======= */
.articles-recents h2 {
  text-align: center;
}

.articles-recents ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.articles-recents ul li {
  margin: 12px 0;
}

.articles-recents ul li a {
  color: #004080;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.articles-recents ul li a:hover {
  color: #0074d9;
  text-decoration: underline;
}

/* ======= Articles en Détail ======= */
.articles-en-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.article-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.article-card h3 {
  color: #004080;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.article-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

.article-card .btn {
  display: block;
  text-align: center;
}

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

/* ======= Responsive Design ======= */
@media (max-width: 768px) {
  main {
      padding: 15px;
  }

  .liens-rapides .btn-group {
      flex-direction: column;
  }

  .articles-en-detail {
      grid-template-columns: 1fr;
  }

  .intro h2 {
      font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .btn {
      width: 100%;
      text-align: center;
  }
}

/* ======= Global Styles ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f4f6f9;
  color: #333;
  line-height: 1.7;
  padding: 20px;
}

/* ======= Header ======= */
h1 {
  text-align: center;
  font-size: 2rem;
  color: #004080;
  margin-bottom: 20px;
}

/* ======= Navigation ======= */
a {
  display: inline-block;
  color: #004080;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

a:hover {
  background: #0074d9;
  color: white;
}

/* ======= Formulaire Facturation ======= */
.invoice-details, .payment-info, .invoice-form {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.invoice-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.profesionel,
.payment-info {
  flex: 1;
}

input {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 15px;
}

/* ======= Table Facture ======= */
table.invoice {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

table.invoice th, 
table.invoice td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

table.invoice th {
  background: #004080;
  color: white;
}

tfoot {
  font-weight: bold;
  background: #f3f3f3;
}

/* ======= Boutons ======= */
button {
  background: #004080;
  color: white;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

button:hover {
  background: #0074d9;
}

/* ======= Responsive Design ======= */
@media (max-width: 768px) {
  .invoice-details {
      flex-direction: column;
  }

  h1 {
      font-size: 1.8rem;
  }

  table.invoice th, 
  table.invoice td {
      font-size: 0.9rem;
  }

  .invoice-buttons {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }
}
