/* assets/css/style.css */

/* Couleur logo #145967 */

/* 1. Reset / règles de base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100%; }
body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; background-color: #f9f9f9; }
a { color: #0a67c2; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header */
.site-header { background-color: #fff; border-bottom: 1px solid #ddd; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.site-logo a { font-size: 1.5rem; font-weight: bold; }
.site-nav ul { list-style: none; display: flex; }
.site-nav li { margin-left: 1rem; }

/* Fil d’Ariane */
.breadcrumb { background-color: #fafafa; padding: 0.5rem 1rem; font-size: 0.9rem; margin-top: 1rem; }
.breadcrumb a { color: #555; }
.breadcrumb span { color: #999; }

/* Structure */
.site-wrapper { display: flex; flex-direction: column; }
.main-content { flex: 1; margin-top: 1rem; }
.sidebar { background-color: #fff; margin-top: 2rem; padding: 1rem; border: 1px solid #ddd; }
.sidebar span {
    font-weight: bold;
    font-size : 1.5rem;
}
.widget-recent-posts span { margin-bottom: 0.5rem; }
.widget-recent-posts ul { list-style: none; }
.widget-recent-posts li { margin-bottom: 0.5rem; }

.widget-categories ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.widget-categories li {
  margin: 0.2rem;
}

.widget-categories a {
  font-size: 0.9rem;
}

/* 12. Catégories (tags) */
.category-tag {
  display: inline-block;
  background-color: #e0f0ff;
  color: #0a67c2;
  padding: 0.2rem 0.6rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  border-radius: 3px;
  text-decoration: none;
}

.category-tag:hover {
  background-color: #c5e4ff;
}

/* 13. Post résumé : tags */
.post-summary .tags {
  padding: 0 1rem 0.5rem;
}

/* Post résumé */
.post-summary { background-color: #fff; border: 1px solid #ddd; display: flex; flex-direction: column; margin-bottom: 1.5rem; overflow: hidden; }
.post-summary img { width: 100%; height: auto; display: block; }
.post-summary-content { padding: 1rem; }
.post-summary h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.post-meta { font-size: 0.9rem; color: #666; margin-bottom: 0.75rem; }
.post-summary p { font-size: 1rem; color: #333; }

/* Single post */
.single-post { background-color: #fff; padding: 1.5rem; border: 1px solid #ddd; margin-bottom: 2rem; }
.single-post-header h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.single-post .post-meta { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }
.featured-image img { width: 80%; height: auto; margin-bottom: 1rem; }
.single-post-content { line-height: 1.8; font-size: 1rem; }
/* ─── 16. Typographie article ─────────────────────────────────────────────── */
.single-post-content {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

/* Titres */
.single-post-content h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: #0a67c2;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.3rem;
}
.single-post-content h3 {
  font-size: 1.4rem;
  margin: 1.8rem 0 0.8rem;
  color: #0a67c2;
}
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
  color: #0a67c2;
}

/* Paragraphes */
.single-post-content p {
  margin: 1rem 0;
  text-align: justify;
}

/* Listes à puces */
.single-post-content ul,
.single-post-content ol {
  margin: 1rem 0 1rem 1.5rem;
}
.single-post-content ul li,
.single-post-content ol li {
  margin-bottom: 0.5rem;
}
.single-post-content ul li strong,
.single-post-content ol li strong {
  color: #0a67c2;
}

/* Listes numérotées */
.single-post-content ol {
  list-style: decimal inside;
}

/* Tableaux */
.single-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.single-post-content th,
.single-post-content td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: left;
}
.single-post-content thead {
  background-color: #f0f8ff;
}
.single-post-content tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Blockquotes */
.single-post-content blockquote {
  margin: 1.5rem 2rem;
  padding: 1rem 1.5rem;
  border-left: 4px solid #0a67c2;
  background-color: #f7faff;
  font-style: italic;
  color: #555;
}

/* Liens dans le contenu */
.single-post-content a {
  color: #0a67c2;
  text-decoration: underline;
}
.single-post-content a:hover {
  color: #084b8a;
}

/* Images responsives */
.single-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Code inline */
.single-post-content code {
  background: #f4f4f4;
  padding: 0.1rem 0.3rem;
  font-family: 'Courier New', monospace;
  border-radius: 3px;
}

/* Code block */
.single-post-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
}

/* Emphase */
.single-post-content strong {
  color: #0a67c2;
}


/* Loader */
#loader { text-align: center; font-size: 1rem; color: #555; display: none; margin: 1rem 0; }

/* Pagination */
.pagination { text-align: center; margin: 2rem 0; }
.pagination a { display: inline-block; margin: 0 0.5rem; padding: 0.5rem 1rem; background-color: #0a67c2; color: #fff; border-radius: 3px; }
.pagination span { margin: 0 0.5rem; font-size: 1rem; }
.pagination .current {
  background: #0a67c2;
  color: #fff;
}
.pagination a:hover {
  background: rgba(10,103,194,0.1);
}
.pagination .prev,
.pagination .next {
  font-size: 0.9rem;
}

/* Footer */
.site-footer { background-color: #fff; border-top: 1px solid #ddd; padding: 1rem 0; margin-top: 2rem; }
.site-footer .container { display: flex; flex-direction: column; align-items: center; font-size: 0.9rem; color: #666; }
.site-footer a { color: #0a67c2; }

/* Static pages */
.static-page { background: #fff; padding: 1rem; border: 1px solid #ddd; margin-bottom: 2rem; }
.static-page h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.static-page h2 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.static-page p, .static-page ul { margin-bottom: 1rem; }

/* Responsive desktop */
@media (min-width: 768px) {
  .site-wrapper { flex-direction: row; padding-left: 2rem; }
  .main-content { flex: 2; margin-right: 2rem; margin-left: 1.5rem; }
  .sidebar { flex: 1; max-width: 280px; margin-top: 0; margin-right: 1.5rem; }
  .post-summary { flex-direction: row; height: 200px; }
  .post-summary img { width: 300px; height: 100%; object-fit: contain; }
  .post-summary-content { flex: 1; }
}

/* Cookie banner : affiché par défaut (flex), caché ensuite par le JS si cookie déjà posé */
#cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  align-items: center;
  font-size: 0.9rem;
  z-index: 1000;
  display: flex;           /* ▶ forcé à flex dès le départ */
}

#cookie-banner p {
  margin: 0;
  margin-right: 1rem;
}

#cookie-banner .buttons button {
  margin-left: 0.5rem;
  background: #fff;
  color: #000;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9rem;
}

#cookie-banner .buttons button:hover {
  opacity: 0.8;
}


/* 11. Table des matières */
.toc {
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 5px;
}
.toc h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: #0a67c2;
}
.toc ul {
  list-style: none;
  padding-left: 0;
}
.toc ul li {
  margin-bottom: 0.5rem;
}
.toc-level-1 { margin-left: 0; }
.toc-level-2 { margin-left: 1rem; }
.toc-level-3 { margin-left: 2rem; }
.toc-level-4 { margin-left: 3rem; }

#toc ul li a {
  color: #333;
  text-decoration: none;
}
#toc ul li a:hover {
  text-decoration: underline;
}

/* 12. Filtres artisans */
.widget-artisan-filters {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 4px;
}
.widget-artisan-filters h2 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.widget-artisan-filters label {
  display: block;
  margin: 0.5rem 0 0.3rem;
  font-weight: bold;
}
.widget-artisan-filters select {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.widget-artisan-filters button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #0a67c2;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.widget-artisan-filters button:hover {
  opacity: 0.9;
}

/* Formulaire partenariat */
form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}
form input, form select, form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
form textarea {
  min-height: 120px;
}
form button {
  margin-top: 1.2rem;
  padding: 0.7rem 1.2rem;
  background: #0a67c2;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
form button:hover {
  opacity: 0.9;
}

/* Messages */
.alert.success {
  background: #e0f8e0;
  border: 1px solid #b2e2b2;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.error {
  color: #d00;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Partnership Form */
.partnership-form {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.partnership-form .form-group {
  margin-bottom: 1.5rem;
}

.partnership-form .form-row {
  display: flex;
  gap: 1rem;
}

.partnership-form .form-row .form-group {
  flex: 1;
}

.partnership-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.partnership-form input[type="text"],
.partnership-form input[type="email"],
.partnership-form input[type="url"],
.partnership-form select,
.partnership-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.partnership-form input:focus,
.partnership-form select:focus,
.partnership-form textarea:focus {
  border-color: #0a67c2;
  box-shadow: 0 0 0 3px rgba(10,103,194,0.1);
  outline: none;
}

.partnership-form textarea {
  min-height: 120px;
  resize: vertical;
}

.partnership-form .error {
  margin-top: 0.3rem;
  color: #d32f2f;
  font-size: 0.9rem;
}

.btn-submit {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0a67c2;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 1rem;
}

.btn-submit:hover {
  background-color: #084b8a;
}

.btn-submit:active {
  transform: scale(0.98);
}

/* Responsive */
@media (max-width: 600px) {
  .partnership-form .form-row {
    flex-direction: column;
  }
}

