/*
Theme Name: Mon Salaire Net
Theme URI: https://mon-salaire-net.fr
Author: Olivier Niel
Author URI: https://mon-salaire-net.fr
Description: Thème personnalisé pour le calculateur de salaire brut/net
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mon-salaire-net
*/

/* 📌 Fond général */
body {
    background-color: #f9fafb !important;
    color: #1f2937 !important;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 📌 Conteneur principal */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: white;
}

/* 📌 HEADER - Correction des couleurs */
nav {
    background: linear-gradient(to right, #047857, #0d9488);
    padding: 15px 0;
    text-align: center;
}

/* 📌 Menu */
nav a {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    padding: 10px 15px;
    display: inline-block;
}

/* ✅ Effet au survol */
nav a:hover {
    color: #d1fae5 !important;
}

/* 📌 Titres */
h1, h2, h3, h4, h5, h6 {
    color: #1f2937 !important;
}

/* 📌 Style des titres H2 */
h2 {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: #034c3c !important;
    margin-top: 4rem !important;
    margin-bottom: 2.5rem !important;
}

/* 📌 Style des titres H3 */
h3 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: #065f46 !important;
    margin-top: 3.5rem !important;
    margin-bottom: 2rem !important;
}

/* 📌 Espacement des sections */
section {
    margin-bottom: 70px !important;
}

/* 📌 Design du sommaire */
.sommaire {
    background: white;
    border-radius: 10px;
    border: 2px solid #10b981;
    padding: 20px;
    text-align: left;
}

/* 📌 Titre du sommaire */
.sommaire h2 {
    color: white !important;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    background: #047857;
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* 📌 Contenu du sommaire */
.sommaire nav {
    background: white;
    padding: 10px 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* 📌 Liens du sommaire */
.sommaire nav a {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #10b981 !important;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s, padding-left 0.3s;
}

/* 📌 Effet au survol */
.sommaire nav a:hover {
    color: #047857 !important;
    padding-left: 5px;
}

/* 📌 Correction du texte en bleu */
body, p, li, a {
    color: #1f2937 !important;
}

/* 📌 Correction des liens */
a {
    font-weight: 600;
    text-decoration: none;
    color: #10b981 !important;
}

a:hover {
    text-decoration: underline;
    color: #047857 !important;
}

/* 📌 Espacement du contenu */
.entry-content {
    max-width: 85ch !important;
    margin: 0 auto !important;
}

/* 📌 Centrer les images */
.wp-block-image img {
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

/* 📌 Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

/* 📌 Boutons */
button, .btn {
    background-color: #10b981;
    color: white;
    padding: 15px 30px;
    border-radius: 6px;
    text-align: center;
    font-size: 1.25rem !important;
}

button:hover, .btn:hover {
    background-color: #047857;
}

/* 📌 Footer */
footer {
    background-color: #0f172a;
    padding: 40px 0;
    text-align: center;
    color: white !important;
}

/* 📌 Titres du footer */
footer h2, footer h3 {
    color: white !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* 📌 Texte du footer */
footer p {
    color: #d1d5db !important;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* 📌 Liens du footer */
footer a {
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

footer a:hover {
    color: #10b981 !important;
}

/* 📌 Icônes du footer */
footer svg {
    stroke: white !important;
    transition: stroke 0.3s ease-in-out;
}

footer a:hover svg {
    stroke: #10b981 !important;
}

/* 📌 Copyright */
footer .copyright {
    font-size: 0.875rem;
    color: #9ca3af !important;
    margin-top: 20px;
}

/* 📌 Articles - Grille */
.page-articles {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* 📌 Premier article en grand */
.page-articles .first-article img {
    border-radius: 10px;
}

/* 📌 Grille des articles */
.page-articles .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 📌 Style des articles */
.page-articles .grid article {
    background: white;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    padding: 15px;
}

.page-articles .grid article:hover {
    transform: scale(1.02);
}

/* 📌 Images des articles */
.page-articles .grid article img {
    border-radius: 8px 8px 0 0;
}

/* 📌 Pagination */
.page-articles .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-articles .pagination a {
    padding: 8px 12px;
    background: #10b981;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.page-articles .pagination a:hover {
    background: #047857;
}
.blog-pagination {
  margin-top: 50px;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  color: #059669;
  text-decoration: none;
  border: 1px solid #059669;
  transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover {
  background-color: #d1fae5;
  color: #065f46;
}

.blog-pagination .current {
  background-color: #059669;
  color: white;
  border-color: #059669;
  font-weight: bold;
}
