/**
 * Pages pays – Refonte professionnelle
 * Layout: hero sobre, nav interne, sections deux colonnes (contenu + sidebar)
 */

/* Contention débordements – pages pays */
.country-page-content {
  overflow-x: hidden;
}
.country-page-content .container,
.country-page-content .row,
.country-page-content .col-lg-10 {
  min-width: 0;
}

/* ---- Hero ---- */
.cp-hero {
  background: #0d1117;
  color: #fff;
  padding: 4.5rem 0 4rem;
  position: relative;
}
.cp-hero .container { position: relative; z-index: 1; }
.cp-hero-breadcrumb {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.cp-hero-breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.cp-hero-breadcrumb a:hover { color: #fff; }
.cp-hero-breadcrumb span { color: rgba(255,255,255,0.45); margin: 0 0.4rem; }
.cp-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: #fff;
}
.cp-hero-desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 36rem;
  margin: 0;
}

/* ---- Nav interne ---- */
.cp-nav-wrap {
  background: #fff;
  border-bottom: 1px solid #e6e8eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.cp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.75rem 0;
}
.cp-nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.cp-nav a:hover {
  color: #111827;
  background: #f3f4f6;
}
.cp-nav a:focus { outline: 2px solid #5BBB7B; outline-offset: 2px; }

/* ---- Contenu principal ---- */
.cp-main { padding: 3.5rem 0 4rem; }
.cp-intro {
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.cp-intro p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 1rem;
}
.cp-intro p:last-child { margin-bottom: 0; }
.cp-intro strong { color: #111827; }

/* ---- Sections (alternance de fond) ---- */
.cp-section {
  padding: 3.5rem 0;
}
.cp-section:nth-child(even) { background: #f8f9fb; }
.cp-section-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5BBB7B;
  margin-bottom: 0.5rem;
}
.cp-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.cp-section-body p {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: #4b5563;
  margin-bottom: 1rem;
}
.cp-section-body p:last-of-type { margin-bottom: 0; }
.cp-section-body strong { color: #111827; }

/* ---- Disposition stylée du contenu ---- */

/* Premier paragraphe (chapeau) */
.cp-lead {
  font-size: 1.0625rem !important;
  line-height: 1.8 !important;
  color: #374151 !important;
  font-weight: 500;
  padding-left: 1rem;
  border-left: 3px solid #5BBB7B;
  margin-bottom: 1.5rem !important;
}

/* Encadré / callout */
.cp-callout {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid rgba(91, 187, 123, 0.35);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  padding-left: 3rem;
}
.cp-callout::before {
  content: "i";
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 1.5rem;
  height: 1.5rem;
  background: #5BBB7B;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-style: normal;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cp-callout-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
  margin: 0 0 0.35rem;
}
.cp-callout p, .cp-callout ul {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #374151;
  margin: 0;
}
.cp-callout ul { padding-left: 1.25rem; margin-top: 0.5rem; }

/* Encadré avertissement / important */
.cp-callout-warn {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(245, 158, 11, 0.4);
}
.cp-callout-warn::before { content: "!"; background: #d97706; }
.cp-callout-warn .cp-callout-title { color: #b45309; }

/* Bloc surligné (une phrase forte) */
.cp-highlight {
  background: #111827;
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 1.5rem 0;
  text-align: center;
}
.cp-highlight strong { color: #5BBB7B; }

/* Liste étapes (numérotée, style timeline) */
.cp-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: step;
}
.cp-steps li {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4b5563;
}
.cp-steps li:last-child { padding-bottom: 0; }
.cp-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: #5BBB7B;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cp-steps li::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 1.9rem;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}
.cp-steps li:last-child::after { display: none; }

/* Deux colonnes (texte) */
.cp-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
  min-width: 0;
}
.cp-two-cols p {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: #4b5563;
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
}
@media (max-width: 767px) {
  .cp-two-cols { grid-template-columns: 1fr; gap: 1rem; }
}

/* Séparateur décoratif */
.cp-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
  margin: 2rem 0;
}

/* Citation / phrase clé */
.cp-quote {
  border-left: 4px solid #5BBB7B;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: #f8f9fb;
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  font-style: italic;
  color: #374151;
  line-height: 1.65;
}

/* Cartes horizontales (mini-fiches) */
.cp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  min-width: 0;
}
@media (max-width: 480px) {
  .cp-cards { grid-template-columns: 1fr; }
}
.cp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
  min-width: 0;
  overflow-wrap: break-word;
}
.cp-card:hover {
  border-color: rgba(91, 187, 123, 0.4);
  box-shadow: 0 4px 12px rgba(91, 187, 123, 0.12);
}
.cp-card-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5BBB7B;
  margin-bottom: 0.35rem;
}
.cp-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
}
.cp-card p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
}

/* Services supplémentaires (pages pays) */
.cp-services-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  min-width: 0;
}
@media (max-width: 480px) {
  .cp-services-extra { grid-template-columns: 1fr; }
}
.cp-services-extra li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #374151;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.cp-services-extra li .cp-extra-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 187, 123, 0.15);
  color: #5BBB7B;
  border-radius: 8px;
  font-size: 1rem;
}
.cp-services-extra .cp-extra-content {
  display: block;
  min-width: 0;
}
.cp-services-extra .cp-extra-title {
  display: block;
  font-weight: 600;
  color: #111827;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.cp-services-extra .cp-extra-desc {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.45;
}
.cp-services-extra li strong { color: #111827; }

/* Bloc service détaillé (ex. page Canada) */
.cp-service-item {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #e5e7eb;
}
.cp-service-item:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cp-service-item-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
  padding-bottom: 0.25rem;
}
.cp-service-item .country-block-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

/* ---- Sidebar ---- */
.cp-sidebar { position: sticky; top: 5rem; }
.cp-sidebar-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.cp-sidebar-block:last-child { margin-bottom: 0; }
.cp-sidebar-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.cp-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cp-sidebar ul li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.cp-sidebar ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5BBB7B;
}
.cp-sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #111827;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.2s;
}
.cp-sidebar-links a:last-child { border-bottom: none; }
.cp-sidebar-links a:hover { color: #5BBB7B; }
.cp-sidebar-links a::after {
  content: "→";
  margin-left: auto;
  font-size: 0.8em;
  opacity: 0.6;
}

/* ---- CTA final ---- */
.cp-cta {
  background: #111827;
  color: #fff;
  padding: 3.5rem 2rem;
  text-align: center;
}
.cp-cta p {
  font-size: 1.125rem;
  margin: 0 0 1.25rem;
  color: rgba(255,255,255,0.9);
}
.cp-cta .ud-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background: #5BBB7B;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.cp-cta .ud-btn:hover {
  background: #4a9d66;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Liens longs (links-box) – éviter débordement */
.country-block .links-box,
.country-page-content .links-box {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.country-block .links-box a,
.country-page-content .links-box a {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Callout / highlight – texte long */
.cp-callout,
.cp-highlight {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 991px) {
  .cp-hero { padding: 3rem 0 2.5rem; }
  .cp-sidebar { position: static; margin-top: 2rem; }
  .cp-section { padding: 2.5rem 0; }
  .cp-main { padding: 2.5rem 0 3rem; }
}
@media (max-width: 575px) {
  .cp-nav { padding: 0.5rem 0; }
  .cp-nav a { padding: 0.4rem 0.75rem; font-size: 0.875rem; }
}

/* Visuel dans le corps de page (ex. services par pays) */
.country-page-feature-photo {
  margin: 0 auto 2rem;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(64, 79, 104, 0.1);
  line-height: 0;
}
.country-page-feature-photo img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---- Bloc plein « couverture » : image fond + texte par-dessus (ex. Services Allemagne) ---- */
.nao-cover-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-sizing: border-box;
  min-height: clamp(260px, 36vw, 400px);
  display: flex;
  align-items: center;
}
.nao-cover-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #d1d8e0;
}
.nao-cover-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: translateZ(0);
  filter: brightness(1.06) contrast(1.04);
}
/* Voile léger pour garder le texte lisible sur toutes les photos */
.nao-cover-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(15, 23, 42, 0.45) 55%,
    rgba(15, 23, 42, 0.55) 100%
  );
}
.nao-cover-hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(2.25rem, 7vw, 4.25rem);
  padding-bottom: clamp(2.25rem, 7vw, 4.25rem);
}
.nao-cover-hero__text {
  max-width: 40rem;
}
.nao-cover-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.nao-cover-hero__desc {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
@media (max-width: 767.98px) {
  .nao-cover-hero {
    min-height: clamp(240px, 52vw, 340px);
  }
}

/* ---- Filigrane drapeau (watermark) sur pages pays ---- */
/* Principe: un pseudo-élément derrière tout le contenu,
   avec une opacité faible pour ne pas gêner la lecture. */
.country-page-content{
  position: relative;
  isolation: isolate; /* évite les conflits de stacking lors du scroll/sticky */
}
.country-page-content::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--flag-watermark-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* couvre toute la zone */
  opacity: 0.06;
  pointer-events: none;
  z-index: -1; /* derrière tout le contenu */
}
.country-page-content > *{
  position: relative;
  z-index: 1;
}

/* Associe l'URL du drapeau au pays */
body.country-watermark--suisse{ --flag-watermark-url: url("https://flagcdn.com/w1600/ch.png"); }
body.country-watermark--belgique{ --flag-watermark-url: url("https://flagcdn.com/w1600/be.png"); }
body.country-watermark--portugal{ --flag-watermark-url: url("https://flagcdn.com/w1600/pt.png"); }
body.country-watermark--allemagne{ --flag-watermark-url: url("https://flagcdn.com/w1600/de.png"); }
body.country-watermark--autriche{ --flag-watermark-url: url("https://flagcdn.com/w1600/at.png"); }
body.country-watermark--royaume-uni{ --flag-watermark-url: url("https://flagcdn.com/w1600/gb.png"); }
body.country-watermark--canada{ --flag-watermark-url: url("https://flagcdn.com/w1600/ca.png"); }
body.country-watermark--pologne{ --flag-watermark-url: url("https://flagcdn.com/w1600/pl.png"); }
body.country-watermark--bahrein{ --flag-watermark-url: url("https://flagcdn.com/w1600/bh.png"); }
body.country-watermark--dubai{ --flag-watermark-url: url("https://flagcdn.com/w1600/ae.png"); }
body.country-watermark--koweit{ --flag-watermark-url: url("https://flagcdn.com/w1600/kw.png"); }
body.country-watermark--etats-unis{ --flag-watermark-url: url("https://flagcdn.com/w1600/us.png"); }
body.country-watermark--bresil{ --flag-watermark-url: url("https://flagcdn.com/w1600/br.png"); }
