/*
Theme Name: ConnectCongo
Theme URI: https://connect-congo.org
Author: LeMak
Author URI: https://lemak.be
Description: La première plateforme de cartographie des initiatives de la diaspora congolaise.
Version: 1.0
Tags: diaspora congolaise, initiatives congolaise
Text Domain: La diaspora au service du développement de la RDC.
*/
:root {
  --cc-primary: #135bec;
  --cc-dark: #101622;
  --cc-light: #f6f6f8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
}

.cc-nav-link {
  position: relative;
}

.cc-nav-link.cc-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: var(--cc-primary);
}

.cc-mobile-menu[aria-hidden="true"] {
  display: none;
}

.cc-badge {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cc-map {
  position: relative;
  overflow: hidden;
}

.cc-map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.cc-map-marker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--cc-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(19, 91, 236, 0.35);
}

.cc-map-tooltip {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: #0d121b;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cc-map-marker:hover .cc-map-tooltip {
  opacity: 1;
}

.cc-step-hidden {
  display: none;
}

.cc-card-shadow {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.cc-submit-page .imr-container,
.cc-submit-page .imr-auth-container {
  max-width: 980px;
  margin: 0;
  padding: 32px;
  border: 1px solid #e7ebf3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  font-family: "Inter", sans-serif;
}

.cc-submit-page .imr-alert {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--cc-primary);
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.cc-submit-page .imr-alert.imr-error {
  border-color: #fecaca;
  border-left-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.cc-submit-page .imr-form-grid {
  gap: 22px;
}

.cc-submit-page .imr-field label,
.cc-submit-page .imr-gdpr label {
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.cc-submit-page .imr-field input,
.cc-submit-page .imr-field textarea,
.cc-submit-page .imr-field select {
  min-height: 48px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #0d121b;
  font-size: 15px;
}

.cc-submit-page .imr-field textarea {
  min-height: 140px;
}

.cc-submit-page .imr-field input:focus,
.cc-submit-page .imr-field textarea:focus,
.cc-submit-page .imr-field select:focus {
  border-color: var(--cc-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.14);
}

.cc-submit-page .imr-submit button,
.cc-submit-page .imr-auth-container button {
  min-height: 48px;
  border-radius: 8px;
  background: var(--cc-primary);
  padding: 0 28px;
  font-size: 15px;
  font-weight: 800;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cc-submit-page .imr-submit button:hover,
.cc-submit-page .imr-auth-container button:hover {
  background: #0f4fd1;
  transform: translateY(-1px);
}

.cc-auth-page .imr-auth-container,
.cc-auth-page section > p {
  width: 100%;
  margin: 0;
  padding: 32px;
  border: 1px solid #e7ebf3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  font-family: "Inter", sans-serif;
}

.cc-auth-page section > p {
  color: #334155;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.cc-auth-page section > p a {
  color: var(--cc-primary);
  font-weight: 800;
  text-decoration: none;
}

.cc-auth-page section > p a:hover {
  text-decoration: underline;
}

.cc-auth-page .imr-auth-container form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cc-auth-page .imr-field label {
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.cc-auth-page .imr-field input {
  min-height: 48px;
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #0d121b;
  font-size: 15px;
}

.cc-auth-page .imr-field input:focus {
  border-color: var(--cc-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.14);
}

.cc-auth-page .imr-auth-container button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--cc-primary);
  padding: 0 28px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cc-auth-page .imr-auth-container button:hover {
  background: #0f4fd1;
  transform: translateY(-1px);
}

.cc-logged-in-card {
  width: 100%;
  margin: 0;
  padding: 32px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  font-family: "Inter", sans-serif;
}

.cc-logged-in-card > .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: #fee2e2;
  color: #ef4444;
  font-size: 28px;
}

.cc-logged-in-card h2 {
  margin: 0;
  color: #0d121b;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.cc-logged-in-card p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.cc-logged-in-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.cc-auth-secondary-button,
.cc-auth-danger-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cc-auth-secondary-button {
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #0d121b;
}

.cc-auth-danger-button {
  border: 1px solid #ef4444;
  background: #ef4444;
  color: #fff;
}

.cc-auth-secondary-button:hover,
.cc-auth-danger-button:hover {
  transform: translateY(-1px);
}

.cc-auth-secondary-button:hover {
  background: #eef2f7;
}

.cc-auth-danger-button:hover {
  background: #dc2626;
}

.cc-auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 800;
}

.cc-auth-links a {
  color: var(--cc-primary);
  text-decoration: none;
}

.cc-auth-links a:hover {
  text-decoration: underline;
}

.imr-news-single-content {
  color: #2f3744;
  font-size: 16px;
  line-height: 1.75;
}

.imr-news-single-content > * {
  margin-top: 0;
}

.imr-news-single-content > * + * {
  margin-top: 14px;
}

.imr-news-single-content p {
  margin-bottom: 0;
}

.imr-news-single-content h1,
.imr-news-single-content h2,
.imr-news-single-content h3,
.imr-news-single-content h4,
.imr-news-single-content h5,
.imr-news-single-content h6 {
  margin-bottom: 0;
  color: #20262e;
  font-weight: 800;
  line-height: 1.25;
}

.imr-news-single-content h1 {
  font-size: 30px;
}

.imr-news-single-content h2 {
  font-size: 25px;
}

.imr-news-single-content h3 {
  font-size: 21px;
}

.imr-news-single-content h4,
.imr-news-single-content h5,
.imr-news-single-content h6 {
  font-size: 17px;
}

.imr-news-single-content strong,
.imr-news-single-content b {
  color: #20262e;
  font-weight: 800;
}

.imr-news-single-content em,
.imr-news-single-content i {
  font-style: italic;
}

.imr-news-single-content a {
  color: var(--cc-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.imr-news-single-content ul,
.imr-news-single-content ol {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.imr-news-single-content ul {
  list-style: disc;
}

.imr-news-single-content ol {
  list-style: decimal;
}

.imr-news-single-content li + li {
  margin-top: 6px;
}

.imr-news-single-content blockquote {
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  border-left: 4px solid var(--cc-primary);
  padding: 10px 0 10px 18px;
  color: #475569;
  font-style: italic;
}

.imr-news-single-content pre {
  overflow-x: auto;
  border-radius: 8px;
  background: #0f172a;
  padding: 14px 16px;
  color: #f8fafc;
  line-height: 1.6;
}

.imr-news-single-content code {
  border-radius: 5px;
  background: #eef2f7;
  padding: 2px 5px;
  color: #1e293b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.imr-news-single-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.imr-news-single-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.imr-news-single-content .aligncenter,
.imr-news-single-content img.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.imr-news-single-content .alignleft,
.imr-news-single-content img.alignleft {
  float: left;
  margin: 6px 22px 14px 0;
}

.imr-news-single-content .alignright,
.imr-news-single-content img.alignright {
  float: right;
  margin: 6px 0 14px 22px;
}

.imr-news-single-content .alignnone,
.imr-news-single-content img.alignnone {
  margin-right: 0;
  margin-left: 0;
}

.imr-news-single-content .size-full,
.imr-news-single-content [class*="wp-image-"],
.imr-news-single-content .wp-block-image,
.imr-news-single-content figure,
.imr-news-single-content .wp-caption {
  max-width: 100%;
}

.imr-news-single-content figure,
.imr-news-single-content .wp-block-image,
.imr-news-single-content .wp-caption {
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

.imr-news-single-content figure img,
.imr-news-single-content .wp-caption img {
  width: auto;
}

.imr-news-single-content figcaption,
.imr-news-single-content .wp-caption-text {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.imr-news-single-content a:has(img) {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
}

.imr-news-single-content::after {
  display: block;
  clear: both;
  content: "";
}

@media (max-width: 640px) {
  .imr-news-single-content .alignleft,
  .imr-news-single-content img.alignleft,
  .imr-news-single-content .alignright,
  .imr-news-single-content img.alignright {
    float: none;
    display: block;
    margin-right: auto;
    margin-left: auto;
  }

  .cc-submit-page {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cc-auth-page {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cc-submit-page .imr-container,
  .cc-submit-page .imr-auth-container,
  .cc-auth-page .imr-auth-container,
  .cc-auth-page section > p {
    padding: 22px;
  }
}
