/* ═══════════════════════════════════════════════
   STYLES SEO — Nouvelles pages cocon sémantique
   ═══════════════════════════════════════════════ */

/* ── Hero badge urgence ── */
.hero-badge {
  display: inline-block;
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ── USP list dans le hero ── */
.hero-usp-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.hero-usp-list li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
}
.hero-usp-list li i {
  color: #198754;
  margin-right: 0.5rem;
}

/* ── Nav CTA ── */
.nav-cta {
  padding: 0.5rem 1.2rem !important;
  border-radius: 4px;
  font-size: 0.9rem;
  color: white !important;
}

/* ── Urgency banner ── */
.urgency-banner {
  background: #fff3cd;
  border-top: 3px solid #ffc107;
  border-bottom: 3px solid #ffc107;
  padding: 1rem 2rem;
}
.urgency-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.urgency-icon { font-size: 1.5rem; color: #856404; }
.urgency-text { flex: 1; color: #856404; font-size: 0.95rem; }
.urgency-cta {
  background: #0D4C46;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.urgency-cta:hover { background: #063430; color: white; }

/* ── Cocons grid (home) ── */
.cocons-section {
  background: #f8f9fa;
  padding: 4rem 2rem;
}
.cocons-container {
  max-width: 1200px;
  margin: auto;
}
.cocons-container > h2 { text-align: center; font-size: 1.8rem; margin-bottom: 0.5rem; }
.cocons-container > p  { text-align: center; color: #555; margin-bottom: 2.5rem; }
.cocons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.cocon-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  position: relative;
  border-top: 4px solid #0D4C46;
  display: flex;
  flex-direction: column;
}
.cocon-card.cocon-priority { border-top-color: #dc3545; }
.cocon-card.cocon-info    { border-top-color: #6c757d; }
.cocon-badge {
  position: absolute;
  top: -1px; right: 1rem;
  background: #dc3545;
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
}
.cocon-icon { font-size: 2rem; color: #0D4C46; margin-bottom: 0.75rem; }
.cocon-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.cocon-card h3 a { color: #0D4C46; font-weight: bold; }
.cocon-card h3 a:hover { text-decoration: underline; }
.cocon-target { font-size: 0.82rem; color: #6c757d; margin-bottom: 0.75rem; font-style: italic; }
.cocon-card ul { list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.9rem; }
.cocon-card ul li { padding: 0.2rem 0; }
.cocon-link {
  margin-top: auto;
  color: #0D4C46;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
}
.cocon-link:hover { color: #198754; }

/* ── USP section ── */
.usp-section { padding: 4rem 2rem; background: #0D4C46; }
.usp-container { max-width: 1200px; margin: auto; }
.usp-container h2 { color: white; text-align: center; margin-bottom: 2rem; font-size: 1.8rem; }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.usp-card {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  color: white;
}
.usp-card.usp-highlight { background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.4); }
.usp-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.usp-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.usp-card p { font-size: 0.9rem; line-height: 1.6; }
.usp-card em { font-size: 0.78rem; opacity: 0.75; }

/* ── Article layout (2 colonnes : TOC + corps) ── */
.article-hero-section {
  background: linear-gradient(135deg, #EDF5F3 0%, #d4e9e4 100%);
  padding: 3rem 2rem 2rem;
}
.article-hero-container { max-width: 900px; margin: auto; }
.article-hero-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.article-date { font-size: 0.85rem; color: #6c757d; }
.article-hero-container h1 {
  font-size: 2rem;
  color: #0D4C46;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.article-chapeau {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  border-left: 4px solid #198754;
  padding-left: 1rem;
  margin-top: 1rem;
}

.article-main { padding: 2rem; }
.article-layout {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* TOC sidebar */
.article-toc {
  flex: 0 0 240px;
  position: sticky;
  top: 1.5rem;
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-left: 4px solid #0D4C46;
}
.toc-title { font-size: 0.95rem; color: #0D4C46; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.toc-list { list-style: decimal; padding-left: 1.2rem; margin: 0; }
.toc-list li { margin-bottom: 0.4rem; }
.toc-list a { font-size: 0.85rem; color: #555; }
.toc-list a:hover { color: #0D4C46; }

/* Corps article */
.article-body { flex: 1; min-width: 0; }
.article-body h2 {
  font-size: 1.45rem;
  color: #0D4C46;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #D9E7E3;
}
.article-body h3 {
  font-size: 1.15rem;
  color: #198754;
  margin: 1.5rem 0 0.75rem;
}
.article-body p { line-height: 1.75; margin-bottom: 1rem; font-size: 0.97rem; }
.article-body ul, .article-body ol { margin: 0.75rem 0 1rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; line-height: 1.6; }

/* Encadrés */
.encadre-bref {
  background: #EDF5F3;
  border-left: 5px solid #198754;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.encadre-bref h2 { font-size: 1.1rem; margin-top: 0; color: #0D4C46; border: none; padding: 0; }
.encadre-bref ul { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.encadre-bref li { padding: 0.25rem 0; font-size: 0.95rem; }
.encadre-bref li i { color: #198754; margin-right: 0.5rem; }

.encadre-retenir {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.encadre-cas-pratique {
  background: #e8f4fd;
  border-left: 5px solid #0d6efd;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.encadre-erreur {
  background: #f8d7da;
  border-left: 5px solid #dc3545;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Tableaux SEO */
.tableau-responsive { overflow-x: auto; margin: 1.5rem 0; }
.tableau-seo {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.tableau-seo caption {
  text-align: left;
  font-size: 0.82rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-style: italic;
}
.tableau-seo th {
  background: #0D4C46;
  color: white;
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-size: 0.88rem;
}
.tableau-seo td { padding: 0.55rem 0.9rem; border-bottom: 1px solid #dee2e6; }
.tableau-seo tr:nth-child(even) td { background: #f8f9fa; }
.tableau-seo tr:hover td { background: #EDF5F3; }

/* CTA milieu */
.cta-milieu {
  background: linear-gradient(135deg, #0D4C46, #198754);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  color: white;
  text-align: center;
}
.cta-milieu h3 { color: white; font-size: 1.3rem; margin-bottom: 0.5rem; }
.cta-milieu p  { color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; font-size: 0.95rem; }
.cta-milieu .btn-primary  { background: white; color: #0D4C46; margin-right: 0.75rem; }
.cta-milieu .btn-primary:hover { background: #EDF5F3; }
.cta-milieu .btn-secondary { border-color: white; color: white; }
.cta-milieu .btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* CTA final */
.cta-final {
  background: #EDF5F3;
  border: 2px solid #0D4C46;
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}
.cta-final h2 { color: #0D4C46; font-size: 1.4rem; border: none; margin-top: 0; }
.cta-final p { color: #555; margin-bottom: 1.5rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Secteurs grid */
.secteurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.secteur-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  text-align: center;
  border-top: 3px solid #0D4C46;
}
.secteur-card i { font-size: 2rem; color: #0D4C46; margin-bottom: 0.75rem; }
.secteur-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.secteur-card h3 a { color: #0D4C46; }
.secteur-card h3 a:hover { text-decoration: underline; }
.secteur-card p { font-size: 0.85rem; color: #555; line-height: 1.5; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid #e9ecef;
  padding: 1.25rem 0;
}
.faq-item h3 {
  font-size: 1rem;
  color: #0D4C46;
  margin-bottom: 0.5rem;
  cursor: default;
}
.faq-item p { font-size: 0.93rem; color: #333; line-height: 1.65; margin: 0; }

/* Sources */
.sources-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.sources-section h2 { font-size: 1.1rem; color: #555; border: none; margin-top: 0; padding: 0; }
.sources-section ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.sources-section li { font-size: 0.88rem; margin-bottom: 0.3rem; }
.sources-section a { color: #0d6efd; }

/* Author box */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 2.5rem 0 1.5rem;
}
.author-avatar img { border-radius: 50%; width: 70px; height: 70px; object-fit: cover; }
.author-name { font-weight: bold; color: #0D4C46; font-size: 1rem; margin-bottom: 0.25rem; }
.author-bio { font-size: 0.88rem; color: #555; line-height: 1.5; }

/* Articles lies */
.articles-lies {
  background: white;
  border-left: 4px solid #198754;
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.articles-lies h3 { font-size: 1rem; color: #198754; margin-bottom: 0.75rem; }
.articles-lies ul { list-style: disc; padding-left: 1.5rem; margin: 0; }
.articles-lies li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.articles-lies a { color: #0D4C46; }
.articles-lies a:hover { text-decoration: underline; }

/* Breadcrumb */
.breadcrumb-nav { background: white; padding: 0.6rem 2rem; border-bottom: 1px solid #eee; }
.breadcrumb-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0;
  margin: auto;
  max-width: 1200px;
  font-size: 0.85rem;
}
.breadcrumb-list li::after { content: ""; margin-left: 0.5rem; color: #aaa; }
.breadcrumb-list li:not(:last-child)::after { content: "›"; }
.breadcrumb-list a { color: #0D4C46; }
.breadcrumb-list li[aria-current="page"] { color: #6c757d; }

/* Footer legal */
.footer-legal {
  flex: 1 1 100%;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

/* Certibio tag */
.certibio-tag {
  display: inline-block;
  background: #0D4C46;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Standalone btn-primary / btn-secondary (outside cta-milieu) */
.btn-primary {
  display: inline-block;
  background: #0D4C46;
  color: white;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: #0a3a35; color: white; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #0D4C46;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid #0D4C46;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: #0D4C46; color: white; }

/* Notice download box */
.notice-download-box {
  background: #EDF5F3;
  border: 2px dashed #198754;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.notice-download-box h3 { color: #0D4C46; margin-top: 0; margin-bottom: 0.5rem; }
.notice-download-box p { color: #555; font-size: 0.92rem; margin-bottom: 1rem; }
.notice-download-btn {
  display: inline-block;
  background: #0D4C46;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.notice-download-btn:hover { background: #0a3a35; color: white; }

/* blog-image in articles */
.blog-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
  display: block;
}

/* Responsive article layout */
@media (max-width: 900px) {
  .article-layout { flex-direction: column; }
  .article-toc { position: static; flex: none; width: 100%; }
}
@media (max-width: 768px) {
  .urgency-container { flex-direction: column; text-align: center; }
  .usp-grid { grid-template-columns: 1fr; }
  .cocons-grid { grid-template-columns: 1fr; }
  .article-hero-container h1 { font-size: 1.5rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .secteurs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .secteurs-grid { grid-template-columns: 1fr; }
}
