@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

/* CSCo — système visuel officiel
   Palette tirée du logo : bleu institutionnel, rouge dynamique et noir encre. */
:root {
  --csco-blue: #292d91;
  --csco-blue-dark: #171b5f;
  --csco-blue-soft: #eef0ff;
  --csco-red: #ed1c24;
  --csco-red-dark: #c81018;
  --csco-ink: #171923;
  --csco-muted: #667085;
  --csco-surface: #ffffff;
  --csco-bg: #f7f8fc;
  --csco-border: #e5e7ef;
  --csco-shadow: 0 18px 50px rgba(23, 27, 95, 0.1);
  --csco-radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--csco-ink);
  background: var(--csco-surface);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body :not(i) {
  font-family: "Montserrat", "Segoe UI", sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Georgia, serif !important;
}

.main-hdr ul li a,
button,
input,
textarea {
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

a {
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

::selection {
  color: #fff;
  background: var(--csco-red);
}

.container {
  max-width: 1200px !important;
}

/* En-tête et identité */
.main-header {
  background: linear-gradient(105deg, var(--csco-blue-dark), var(--csco-blue));
  box-shadow: 0 8px 30px rgba(23, 27, 95, .18);
  z-index: 1000;
}

.main-header > .container {
  position: relative;
}

.nav-brand {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(9, 12, 51, .28);
}

.nav-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-header .row {
  padding-left: 0;
}

.main-header .row > div:first-child {
  width: 100%;
}

.main-header .tr-text {
  display: none;
}

.main-hdr ul {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1px;
}

.main-hdr ul li {
  padding: 29px 10px;
}

.main-hdr ul li a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .045em;
}

.main-hdr ul li::before {
  width: 100%;
  background: rgba(255, 255, 255, .1);
}

.actv-nav::after {
  width: 100%;
  height: 4px;
  background: var(--csco-red);
}

.search-bar a {
  color: #fff;
  background: var(--csco-red);
}

.search-bar a:hover {
  background: var(--csco-red-dark);
}

.header-section-2 {
  padding: 14px 0;
  border-bottom: 1px solid var(--csco-border);
  box-shadow: 0 10px 30px rgba(23, 27, 95, .05);
}

.header-section-2 > .container > .row > .col-lg-3:first-child {
  display: none;
}

.header-section-2 > .container > .row > .col-lg-9 {
  width: 100%;
}

.header-section-2 .hdr-2-details {
  margin-left: 0;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
}

.site-logo img,
.site-logo .img-full {
  width: 126px;
  height: 108px;
  min-width: 0;
  object-fit: contain;
}

.header-info-icon {
  background: var(--csco-blue);
  box-shadow: 0 8px 22px rgba(41, 45, 145, .2);
}

.header-info:hover .header-info-icon {
  background: var(--csco-red);
}

.header-info-details h5 {
  color: var(--csco-ink);
}

.header-info-details p {
  color: var(--csco-muted);
}

/* Bandeaux et titres */
.before-banner::before {
  background: linear-gradient(90deg, rgba(13, 17, 63, .82), rgba(13, 17, 63, .2)) !important;
}

.banner-text h4 {
  color: #fff;
  letter-spacing: .04em;
}

.banner-text h2 {
  text-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}

.carousel-indicators .active,
.slider-chng {
  color: var(--csco-blue);
  background-color: #fff;
}

.carousel .slider-chng {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: #fff;
  background: rgba(23, 27, 95, .84);
  box-shadow: 0 10px 28px rgba(8, 11, 48, .28);
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.carousel-control-prev:hover .slider-chng,
.carousel-control-next:hover .slider-chng {
  border-color: var(--csco-red);
  background: var(--csco-red);
  transform: scale(1.08);
}

@media (max-width: 575.98px) {
  .carousel .slider-chng {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }
}

.about-banner-section,
.service-banner-section,
.class-banner-section,
.admission-banner-section,
.shop-banner-section,
.notice-banner-section,
.contact-banner-section {
  position: relative;
}

/* Boutons et appels à l'action */
.btn-1 a,
.btn-2 a,
.btn-3 a,
.si-btn a,
.bpipc-btn a,
.sub-btn a,
button,
input[type="submit"] {
  border-radius: 10px;
  font-weight: 700;
}

.btn-1 a,
.btn-3 a,
.si-btn a,
.sub-btn a,
input[type="submit"] {
  background-color: var(--csco-red);
}

.btn-1 a:hover,
.btn-3 a:hover,
.si-btn a:hover,
.sub-btn a:hover,
input[type="submit"]:hover {
  background-color: var(--csco-red-dark);
}

/* Cartes et sections */
.choose-section,
.blog-section,
.gallery-section {
  background-color: var(--csco-bg);
}

.colume-item,
.bp-item,
.happy-item,
.class-item,
.service-item,
.shop-item {
  overflow: hidden;
  border: 1px solid var(--csco-border);
  border-radius: var(--csco-radius);
  background: var(--csco-surface);
  box-shadow: 0 8px 28px rgba(23, 27, 95, .07);
  transition: transform .3s ease, box-shadow .3s ease;
}

.colume-item:hover,
.bp-item:hover,
.happy-item:hover,
.class-item:hover,
.service-item:hover,
.shop-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--csco-shadow);
}

.choose-item h6,
.ci-hdr i,
.bpi-details-left ul li i,
.multiple-text a:hover,
.link-li:hover .link-a {
  color: var(--csco-red);
}

.choose-item h2::after,
.happy-hdr h2::before,
.mi-hdr h3::after,
.border-b::after {
  background: var(--csco-red);
}

.time-section::before,
.happy-section::before {
  background: rgba(23, 27, 95, .82);
}

.newslatter-section {
  background: linear-gradient(105deg, var(--csco-blue-dark), var(--csco-blue));
}

/* Pied de page */
.footer-section,
.footer-bottom,
.multiple-section {
  background-color: var(--csco-blue-dark);
}

.multiple-section {
  padding-top: 70px;
  padding-bottom: 65px;
  border-top: 5px solid var(--csco-red);
}

.multiple-section h3,
.multiple-section .mi-hdr h3 {
  color: #fff;
  font-size: 21px;
  line-height: 1.35;
}

.multiple-section .mi-hdr h3::after {
  height: 3px;
  background: var(--csco-red);
}

.multiple-section p,
.multiple-section .multi-item p,
.multiple-section .multiple-text p,
.multiple-section .ci-right p {
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.7;
}

.multiple-section a,
.multiple-section .multiple-text a,
.multiple-section .link-item ul li a {
  color: #fff;
  font-size: 15px;
}

.multiple-section a:hover,
.multiple-section .multiple-text a:hover,
.multiple-section .link-item ul li a:hover {
  color: #ff6b70;
}

.multiple-section .multiple-item-img-text,
.multiple-section .contact-item {
  border-color: rgba(255, 255, 255, .16);
}

.multiple-section .link-item ul li a i,
.multiple-section .ci-left i {
  color: #ff6b70;
}

.multiple-section .ci-left i {
  border-color: rgba(255, 255, 255, .35);
}

.header-section-1 {
  background: #0d103d;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.header-section-1 .footer-text p,
.header-section-1 .add-call a,
.header-section-1 .social-icon a {
  color: #fff;
  font-size: 14px;
}

.header-section-1 .footer-text p {
  font-weight: 600;
  letter-spacing: .01em;
}

.multiple-item > img,
.footer-section img[src*="logo"],
.multiple-section img[src*="logo"] {
  width: 112px;
  height: 100px;
  object-fit: contain;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
}

:focus-visible {
  outline: 3px solid rgba(237, 28, 36, .55);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .main-header {
    position: sticky;
    top: 0;
  }

  .main-header > .container {
    padding-top: 88px;
  }

  .nav-brand {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 66px;
    height: 66px;
  }

  .main-header .row {
    padding-left: 0;
  }

  .header-section-2 {
    margin-top: 0;
  }

  .main-hdr ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-section-2 {
    display: none;
  }

  .main-hdr ul li {
    padding: 16px 10px;
  }

  .site-logo {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .main-hdr ul {
    gap: 0;
  }

  .main-hdr ul li {
    width: 50%;
    padding: 12px 8px;
    text-align: center;
  }

  .main-hdr ul li a {
    font-size: 12px;
  }

  .header-info {
    justify-content: flex-start;
    margin: 10px 0;
  }

  .site-logo img,
  .site-logo .img-full {
    width: 112px;
    height: 98px;
  }
}


/* Échelle typographique sobre et lisible */
body {
  font-size: 15px;
  line-height: 1.65;
}
.home-carousel .home-hero h1,
.home-carousel .home-hero h2 {
  font-size: clamp(36px, 4.2vw, 56px) !important;
  font-weight: 700 !important;
  line-height: 1.14 !important;
}
.banner-text h2,
.about-banner-text h2,
.service-banner-text h2,
.class-banner-text h2,
.admission-banner-text h2,
.shop-banner-text h2,
.notice-banner-text h2,
.contact-banner-text h2 {
  font-size: clamp(34px, 4vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
}
.choose-item h2,
.about-intro__content h1,
.about-heading h2,
.about-values__content h2,
.news-heading h1,
.news-bulletins__heading h2 {
  font-size: clamp(30px, 3.4vw, 43px) !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
}
.home-hero__lead,
.news-heading > p,
.choose-item p {
  font-size: 16px !important;
}
h3, h4, h5, h6 { font-weight: 600; }
p { font-weight: 400; }

@media (max-width: 575.98px) {
  .home-carousel .home-hero h1,
  .home-carousel .home-hero h2 {
    font-size: 34px !important;
  }
  .banner-text h2,
  .about-banner-text h2,
  .service-banner-text h2,
  .class-banner-text h2,
  .admission-banner-text h2,
  .shop-banner-text h2,
  .notice-banner-text h2,
  .contact-banner-text h2 {
    font-size: 32px !important;
  }
  .choose-item h2,
  .about-intro__content h1,
  .about-heading h2,
  .about-values__content h2,
  .news-heading h1,
  .news-bulletins__heading h2 {
    font-size: 29px !important;
  }
}
