/* =========================================================
   BANGOUA-IT
   Étude de cas : Infrastructure Bangoua-IT
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.case-hero {
  padding: 3rem 0 3.2rem;

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(14,165,233,.22),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #061525,
      #0b1f35
    );

  color: #fff;
}


.case-back {
  display: inline-block;

  margin-bottom: 1.8rem;

  color: #7dd3fc;

  font-size: .9rem;
  text-decoration: none;
}


.case-back:hover {
  text-decoration: underline;
}


.case-kicker {
  display: block;

  margin-bottom: .6rem;

  color: #38bdf8;

  font-size: .8rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .08em;
}


.case-hero h1 {
  margin: 0 0 1rem;

  color: #fff;

  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
}


.case-hero h1 span {
  color: #38bdf8;
}


.case-lead {
  max-width: 850px;

  margin: 0;

  color: #dbeafe;

  font-size: 1.1rem;
  line-height: 1.7;
}


.case-meta {
  display: flex;
  flex-wrap: wrap;

  gap: .55rem;

  margin-top: 1.6rem;
}


.case-meta span {
  padding: .38rem .65rem;

  border:
    1px solid rgba(125,211,252,.25);

  border-radius: 999px;

  background:
    rgba(14,165,233,.08);

  color: #bae6fd;

  font-size: .78rem;
}


/* =========================================================
   NAVIGATION INTERNE
   ========================================================= */

.case-nav {
  position: sticky;
  top: 55px;

  z-index: 20;

  border-bottom: 1px solid #e2e8f0;

  background:
    rgba(255,255,255,.96);

  backdrop-filter: blur(10px);
}


.case-nav .container {
  display: flex;

  gap: 1.5rem;

  overflow-x: auto;

  padding-top: .8rem;
  padding-bottom: .8rem;
}


.case-nav a {
  color: #475569;

  font-size: .85rem;
  font-weight: 700;

  text-decoration: none;

  white-space: nowrap;
}


.case-nav a:hover {
  color: #0284c7;
}


/* =========================================================
   CONTENU
   ========================================================= */

.case-content {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}


.case-section {
  padding: 2.25rem 0;

  border-bottom: 1px solid #e2e8f0;
}


.case-section-heading {
  display: flex;

  align-items: flex-start;

  gap: 1rem;

  margin-bottom: 1.2rem;
}


.case-section-number {
  color: #38bdf8;

  font-size: .8rem;
  font-weight: 800;
}


.case-section-kicker {
  display: block;

  margin-bottom: .2rem;

  color: #0284c7;

  font-size: .75rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .08em;
}


.case-section h2 {
  margin: 0;

  color: #0f172a;

  font-size: clamp(1.8rem, 3vw, 2.5rem);
}


.case-section-intro {
  max-width: 850px;

  color: #64748b;

  line-height: 1.7;
}


.case-text-large {
  color: #334155;

  font-size: 1.08rem;
  line-height: 1.8;
}


/* =========================================================
   CONTEXTE
   ========================================================= */

.case-two-columns {
  display: grid;

  grid-template-columns: 1.4fr .6fr;

  gap: 2rem;
}


.case-highlight {
  padding: 1.5rem;

  border-left: 4px solid #0ea5e9;
  border-radius: 1rem;

  background: #eff6ff;
}


.case-highlight > span {
  display: block;

  margin-bottom: .4rem;

  color: #0284c7;

  font-size: .75rem;
  font-weight: 800;

  text-transform: uppercase;
}


.case-highlight strong {
  display: block;

  margin-bottom: .8rem;

  color: #0f172a;

  font-size: 1.1rem;
}


/* =========================================================
   ARCHITECTURE
   ========================================================= */

.case-architecture {
  display: grid;

  grid-template-columns: 1.1fr .9fr;

  gap: 2rem;

  margin-top: 1.25rem;
}


.case-architecture-image {
  padding: 1rem;

  border-radius: 1.4rem;

  background: #071525;
}


.case-architecture-image img {
  display: block;

  width: 100%;
  height: auto;
}


.case-networks {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0,1fr));

  gap: .8rem;
}


.case-network {
  padding: 1rem;

  border: 1px solid #dbeafe;
  border-radius: 1rem;

  background: #f8fbff;
}


.case-network.featured {
  border-color: #7dd3fc;

  background: #eff6ff;
}


.case-network strong {
  display: block;

  color: #0369a1;
}


.case-network span {
  display: block;

  margin: .25rem 0 .6rem;

  color: #64748b;

  font-size: .78rem;
}


.case-network p {
  margin: 0;

  color: #475569;

  font-size: .85rem;
}


/* =========================================================
   OBJECTIFS
   ========================================================= */

.case-objectives {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0,1fr));

  gap: 1rem;
}


.case-objectives article {
  padding: 1.3rem;

  border: 1px solid #dbeafe;
  border-radius: 1rem;

  background:
    linear-gradient(
      135deg,
      #eff6ff,
      #fff
    );
}


.case-objectives article > span {
  color: #38bdf8;

  font-size: .75rem;
  font-weight: 800;
}


.case-objectives h3 {
  margin:
    .5rem
    0
    .6rem;

  color: #0f172a;
}


.case-objectives p {
  margin: 0;

  color: #64748b;

  line-height: 1.6;
}


/* =========================================================
   SERVICES
   ========================================================= */

.case-services {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0,1fr));

  gap: 1rem;
}


.case-services article {
  padding: 1.3rem;

  border-top: 3px solid #0ea5e9;
  border-radius: 1rem;

  background: #f8fafc;
}


.case-services h3 {
  margin: 0 0 .5rem;

  color: #0f172a;
}


.case-services p {
  margin: 0;

  color: #64748b;

  line-height: 1.6;
}


/* =========================================================
   SÉCURITÉ
   ========================================================= */

.case-security-content {
  display: grid;

  grid-template-columns: 1.1fr .9fr;

  gap: 2rem;
}


.case-security-content ul {
  padding-left: 1.2rem;

  color: #475569;

  line-height: 1.9;
}


.security-layers {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0,1fr));

  gap: .7rem;
}


.security-layers span {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 72px;

  padding: .8rem;

  border: 1px solid #bfdbfe;
  border-radius: 1rem;

  background: #eff6ff;

  color: #0369a1;

  font-weight: 700;
}


/* =========================================================
   Résultats et validations
   ========================================================= */

.validation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.validation-card {
  padding: 1.4rem;
  background: #f8fbff;
  border: 1px solid #d8e8f7;
  border-radius: 16px;
}

.validation-card h3 {
  margin: .7rem 0 .5rem;
  color: #0f172a;
  font-size: 1.08rem;
}

.validation-card p {
  margin: 0;
  color: #52657d;
  line-height: 1.6;
}

.validation-status {
  display: inline-block;
  color: #0284c7;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.validation-conclusion {
  margin-top: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: #071a2d;
  color: #fff;
  border-radius: 16px;
}

.validation-conclusion span {
  display: block;
  margin-bottom: .45rem;
  color: #38bdf8;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.validation-conclusion strong {
  display: block;
  font-size: 1.15rem;
}

.validation-conclusion p {
  margin: .65rem 0 0;
  color: #cbd5e1;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .validation-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .validation-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Compétences mobilisées
   ========================================================= */

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid #dbe5ef;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.15rem 1rem;
  border-bottom: 1px solid #dbe5ef;
}

.skill-item:nth-child(odd) {
  border-right: 1px solid #dbe5ef;
}

.skill-item strong {
  color: #0284c7;
  font-size: 1rem;
}

.skill-item span {
  color: #52657d;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .skills-list {
    grid-template-columns: 1fr;
  }

  .skill-item:nth-child(odd) {
    border-right: 0;
  }
}


/* =========================================================
   FIN
   ========================================================= */

.case-next {
  margin-top: 3rem;

  padding: 2.5rem;

  border-radius: 1.4rem;

  background:
    linear-gradient(
      135deg,
      #071525,
      #0f2740
    );

  color: #fff;
}


.case-next > span {
  color: #38bdf8;

  font-size: .8rem;
  font-weight: 800;

  text-transform: uppercase;
}


.case-next h2 {
  margin:
    .5rem
    0
    1rem;

  color: #fff;
}


.case-next p {
  max-width: 800px;

  color: #cbd5e1;

  line-height: 1.7;
}


.case-next a {
  display: inline-block;

  margin-top: .8rem;

  color: #7dd3fc;

  font-weight: 700;

  text-decoration: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

  .case-two-columns,
  .case-architecture,
  .case-security-content {
    grid-template-columns: 1fr;
  }

  .case-objectives,
  .case-services {
    grid-template-columns:
      repeat(2, minmax(0,1fr));
  }

}


@media (max-width: 650px) {

  .case-hero {
    padding: 2.3rem 0;
  }

  .case-section {
    padding: 2.5rem 0;
  }

  .case-objectives,
  .case-services,
  .case-networks,
  .security-layers {
    grid-template-columns: 1fr;
  }

}