:root {
    --green: #6BCD60;
    --blue: #3AC9E1;

    --codekiddos-primary-color: rgb(37, 1, 91);
    --codekiddos-primary-dark-color: #18013c;
    --codekiddos-secondary-color: #D8BBFF;

    --codekeeners-primary-color: rgb(7, 123, 52);
    --codekeeners-primary-dark-color: #015923;
    --codekeeners-secondary-color: #ccffcc;
    --codekeeners-secondary-dark-color: #86d386;

    --codekickers-primary-color: rgb(246, 161, 23);
    --codekickers-primary-dark-color: #c07702;
    --codekickers-secondary-color: #ffe7bd;
    --codekickers-secondary-dark-color: #e3c186;
}

/** FONTS */
@font-face {
  font-family: 'Super Fortrees';
  src: url('../fonts/superfortrees.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.superfortrees {
  font-family: 'Super Fortrees', sans-serif;
}

.montserrat {
    font-family: 'Montserrat', sans-serif;
}

.mouseMemoirs {
    font-family: 'Mouse Memoirs', sans-serif;
}

.covered-by-your-grace {
    font-family: 'Covered By Your Grace', cursive;
}

.righteous {
    font-family: 'Righteous', cursive;
}

h2 {
    font-size: 4rem;
}

h5 {
    font-size: 2rem;
}

.section {
    margin: 50px 0;
    padding: 80px 0;
    position: relative;
}

.container {
  position: relative;
  z-index: 9 !important;
}

.frise {
    position: relative;
}

.frise::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
}

.frise-codekiddos::after {
    background: url('../images/codekiddos/bg-codekiddos.png') center/cover no-repeat;
}

.frise-codekiddos.fixed-frise::after {
    background: url('../images/codekiddos/bg-codekiddos.png') center/cover no-repeat fixed;
}

.frise-codekeeners::after {
    background: url('../images/codekeeners/bg-codekeeners.png') center/cover no-repeat;
}

.frise-codekeeners.fixed-frise::after {
    background: url('../images/codekeeners/bg-codekeeners.png') center/cover no-repeat fixed;
}

.frise-codekickers::after {
    background: url('../images/codekickers/bg-codekickers.png') center/cover no-repeat;
}

.frise-codekickers.fixed-frise::after {
    background: url('../images/codekickers/bg-codekickers.png') center/cover no-repeat fixed;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero.codekiddos {
    background: url('../images/codekiddos/bg-codekiddos.png') center/cover no-repeat fixed;
}

.hero.codekeeners {
    background: url('../images/codekeeners/bg-codekeeners.png') center/cover no-repeat fixed;
}

.hero.codekickers {
    background: url('../images/codekickers/bg-codekickers.png') center/cover no-repeat fixed;
}

.hero::after {
    position: absolute;
    height: 100%;
    width: 100%;
    content: '';
    top: 0;
    left: 0;
    z-index: -99;
}

.hero.codekiddos::after {
    background: var(--codekiddos-primary-color);
}

.hero.codekeeners::after {
    background: var(--codekeeners-primary-color);
}

.hero.codekickers::after {
    background: var(--codekickers-primary-color);
}

.hero .hero-hour {
    position: absolute;
    bottom: 15rem;
    right: 0%;
    width: 100%;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
}

.codekiddos .hero-hour {
    background-color: var(--codekiddos-secondary-color);
    color: var(--codekiddos-primary-color);
}

.codekeeners .hero-hour {
    background-color: var(--codekeeners-secondary-color);
    color: var(--codekeeners-primary-color);
}

.codekickers .hero-hour {
    background-color: var(--codekickers-secondary-color);
    color: var(--codekickers-primary-color);
}

.hero .hero-content::after {
    content: '';
    position: absolute;
    inset: 0;
    height: 100dvh;
    width: 350px;
    z-index: -9;
    left: 10%;
    top: 0;
    transform: scaleY(0);
    transform-origin: top;
    animation: slideDown 1s ease-out forwards;
}

.codekiddos .hero-content::after {
    background: var(--codekiddos-secondary-color);
}

.codekeeners .hero-content::after {
    background: var(--codekeeners-secondary-color);
}

.codekickers .hero-content::after {
    background: var(--codekickers-secondary-color);
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 100%;
}

.hero-subcontent {
    position: absolute;
    top: 5rem;
    right: 0;
    text-align: center;
    height: 100dvh;
    width: 400px;
}

.hero-logo {
    position: absolute;
    top: 1rem;
    right: 0;
    width: 400px;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.hero-logo img {
    width: 70px !important;
}

.hero-slogan {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-70%);
    font-size: 4rem;
    text-align: center;
    width: 400px;
    padding: 0;
    margin: 0;
    color: #fff;
}

.hero-character {
    position: absolute;
    bottom: 0;
    left: 2rem;
    max-height: 75vh;
}

.hero-character img {
    height: 75vh;
    object-fit: cover;
}

@keyframes slideDown {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

@keyframes slideUp {
    from {
        transform: scaleY(1);
    }
    to {
        transform: scaleY(0);
    }
}


.bg-green {
    background: var(--green);
}

.bg-blue {
    background: var(--blue);
}

/** BG, TEXT COLORS, BUTTONS CODEKIDDOS */
.bg-codekiddos-dark {
    background: var(--codekiddos-primary-color);
}

.bg-codekiddos-light {
    background: var(--codekiddos-secondary-color);
}

.text-codekiddos-dark {
    color: var(--codekiddos-primary-color);
}

.text-codekiddos-light {
    color: var(--codekiddos-secondary-color);
}

.btn-codekiddos-dark {
    background: var(--codekiddos-primary-color);
    color: #fff;
}

.btn-codekiddos-dark:hover {
    background: var(--codekiddos-primary-dark-color);
    color: #fff;
}

.btn-codekiddos-light {
    background: var(--codekiddos-secondary-color);
}

.btn-codekiddos-light:hover {
    background: var(--codekiddos-primary-color);
    color: #fff;
}

/** BG, TEXT COLORS, BUTTONS CODEKEENERS */

.bg-keeners-dark {
    background: var(--codekeeners-primary-color);
}

.bg-keeners-light {
    background: var(--codekeeners-secondary-color);
}

.text-keeners-dark {
    color: var(--codekeeners-primary-color);
}

.text-keeners-light {
    color: var(--codekeeners-secondary-color);
}

.text-keeners-light-dark {
    color: var(--codekeeners-secondary-dark-color);
}

.btn-keeners-dark {
    background: var(--codekeeners-primary-color);
    color: #fff;
}

.btn-keeners-dark:hover {
    background: var(--codekeeners-primary-dark-color);
    color: #fff;
}

.btn-keeners-light {
    background: var(--codekeeners-secondary-color);
}

.btn-keeners-light:hover {
    background: var(--codekeeners-primary-color);
    color: #fff;
}

/** BG, TEXT COLORS, BUTTONS CODEKICKERS */
.bg-codekickers-dark {
    background: var(--codekickers-primary-color);
}

.bg-codekickers-light {
    background: var(--codekickers-secondary-color);
}

.text-codekickers-dark {
    color: var(--codekickers-primary-color);
}

.text-codekickers-light {
    color: var(--codekickers-secondary-color);
}

.text-codekickers-light-dark {
    color: var(--codekickers-secondary-dark-color);
}

.btn-codekickers-dark {
    background: var(--codekickers-primary-color);
    color: #fff;
}

.btn-codekickers-dark:hover {
    background: var(--codekickers-primary-dark-color);
    color: #fff;
}

.btn-codekickers-light {
    background: var(--codekickers-secondary-color);
}

.btn-codekickers-light:hover {
    background: var(--codekickers-primary-color);
    color: #fff;
}

/** BG, TEXT COLORS, BUTTONS CODEKICKERS */
.cta-btn {
      background-color: #ff2d55;
      color: white;
      padding: 0.8rem 2rem;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      margin-top: 1.5rem;
      transition: background 0.3s;
}

.cta-btn:hover {
      background-color: #e01b44;
}

.fit-cover {
    object-fit: contain;
}

.box-shadow {
    box-shadow: 0 0 10px rgba(7, 123, 52, 0.4);
}

/** STATS */
.iconStat {
    width: 130px;
    height: 130px;
}

.codekiddosStats {
    background-color: var(--codekiddos-primary-color);
    -webkit-mask: url(../images/codekiddos/logo-codekiddos-simple.svg) no-repeat center;
    mask: url(../images/codekiddos/logo-codekiddos-simple.svg) no-repeat center;
}

.codekeenersStats {
    background-color: var(--codekeeners-secondary-color);
    -webkit-mask: url(../images/codekeeners/logo-codekeeners-simple.svg) no-repeat center;
    mask: url(../images/codekeeners/logo-codekeeners-simple.svg) no-repeat center;
}

.codekickersStats {
    background-color: var(--codekickers-primary-color);
    -webkit-mask: url(../images/codekickers/logo-codekickers-simple.svg) no-repeat center;
    mask: url(../images/codekickers/logo-codekickers-simple.svg) no-repeat center;
}

.hourOfCodeStats {
    -webkit-mask: url(../../images/logo-skooda-banana-square.svg) no-repeat center;
    mask: url(../../images/logo-skooda-banana-square.svg) no-repeat center;
}

.codekiddos .hourOfCodeStats {
    background-color: var(--codekiddos-primary-color);
}

.codekeeners .hourOfCodeStats {
    background-color: var(--codekeeners-secondary-color);
}

.codekickers .hourOfCodeStats {
    background-color: var(--codekickers-primary-color);
}

.projectStats {
    -webkit-mask: url(../../images/trophy.svg) no-repeat center;
    mask: url(../../images/trophy.svg) no-repeat center;
}

.codekiddos .projectStats {
    background-color: var(--codekiddos-primary-color);
}

.codekeeners .projectStats {
    background-color: var(--codekeeners-secondary-color);
}

.codekickers .projectStats {
    background-color: var(--codekickers-primary-color);
}


/* Icônes flottantes décoratives */
.icon-floating {
  position: absolute;
  width: 60px;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.5s ease;
  animation: float 5s ease-in-out infinite;
  width: 200px;
}

.icon-floating:hover {
  transform: scale(1.1) rotate(3deg);
}

/* Positions spécifiques */
.icon-top-left {
  top: 40px;
  left: 30px;
}

.icon-top-right {
  top: 60px;
  right: 40px;
}

.icon-center-left {
  top: 45%;
  left: 10px;
  transform: translateY(-45%);
}

.icon-center-right {
  top: 55%;
  right: 10px;
  transform: translateY(-55%);
}

.icon-bottom-left {
  bottom: 60px;
  left: 40px;
}

.icon-bottom-right {
  bottom: 40px;
  right: 30px;
}

/* Animation de flottement douce */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

/** CAROUSEL BOOTSTRAP */
.carousel-item {
    position: relative;
}

.carousel-item img {
    border-radius: 20px;
}

.carousel-inner {
    transform: rotate(356deg);
}

.carousel::after {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border: 5px solid #fff;
    border-radius: 20px;
    transform: rotate(356deg);
}

/** OWL CAROUSEL */
.owl-stage {
    height: 100%;
}

.owl-item {
    height: 100%;
}
.owl-dots {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: rgba(37, 1, 91, 0.3) !important;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.codekiddos .owl-dot.active, .codekiddos .owl-dot:hover {
    background: var(--codekiddos-primary-color) !important;
}

.codekeeners .owl-dot.active, .codekeeners .owl-dot:hover {
    background: var(--codekeeners-primary-color) !important;
}

.codekickers .owl-dot.active, .codekickers .owl-dot:hover {
    background: var(--codekickers-primary-color) !important;
}

/** ACCORDION */
.accordion-item {
    margin: 0 0 10px 0;
    border: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.codekiddos .accordion-button:not(.collapsed), .codekiddos .accordion-item:has(.accordion-button:not(.collapsed)) {
    background: var(--codekiddos-primary-color);
    color: #fff;
}

.codekeeners .accordion-button:not(.collapsed), .codekeeners .accordion-item:has(.accordion-button:not(.collapsed)) {
    background: var(--codekeeners-primary-color);
    color: #fff;
}

.codekickers .accordion-button:not(.collapsed), .codekickers .accordion-item:has(.accordion-button:not(.collapsed)) {
    background: var(--codekickers-primary-color);
    color: #fff;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

/** SCROLL MENU */
.scroll-menu {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.scroll-menu.d-none {
    transform: translateY(-100%);
}

#scrollMenu {
    height: 70px;
    padding: 15px 0
}

#scrollMenu #logo-codekeeners img {
    height: 50px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-item {
    color: #fff;
    padding: 13px 15px !important;
    border-radius: 50px;
    margin: 0 15px 0 0;
}

.codekiddos .nav-item:hover, .codekiddos .nav-item.active {
    background: var(--codekiddos-secondary-color);
    color: var(--codekiddos-primary-color) !important;
}

.codekeeners .nav-item:hover, .codekeeners .nav-item.active {
    background: var(--codekeeners-secondary-color);
    color: var(--codekeeners-primary-color) !important;
}

.codekickers .nav-item:hover, .codekickers .nav-item.active {
    background: var(--codekickers-secondary-color);
    color: var(--codekickers-primary-color) !important;
}

/** THEMATIC BOXES */
.thematic-box {
    border-radius: 1rem;
    height: 100%;
    transition: transform 0.3s;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.codekiddos .thematic-box {
    background: var(--codekiddos-secondary-color);
}

.codekeeners .thematic-box {
    background: var(--codekeeners-secondary-color);
}

.codekickers .thematic-box {
    background: var(--codekickers-secondary-color);
}

.thematic-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.thematic-box:hover {
    transform: scale(1.02);
    color: #fff;
}

.codekiddos .thematic-box:hover {
    background: var(--codekiddos-primary-color);
}

.codekeeners .thematic-box:hover {
    background: var(--codekeeners-primary-color);
}

.codekickers .thematic-box:hover {
    background: var(--codekickers-primary-color);
}

footer {
    background-color: #1e1e2f;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    /* .container {
        padding: 1rem;
    } */
    .hero.codekiddos {
        position: relative;
        height: 100vh;
        background: url('../images/codekiddos/bg-codekiddos-mini.png') center/cover no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .hero-content::after {
        display: none;
    }
    .hero-subcontent {
        position: unset;
        width: 100dvw;
        height: 65dvh;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .hero-slogan {
        position: unset;
        height: 20dvh;
        transform: unset !important;
    }
    .hero-logo {
        position: unset;
        width: 200px;
        height: 25dvh;
    }
    .hero-logo img {
        width: 60px !important;
    }
    .hero-character {
        max-height: 45vh;
        left: 0;
    }
    .hero-character img {
        width: 100%;
    }
    
    .hero-hour {
        width: 80dvw !important;
        z-index: 999;
        bottom: 20px !important;
        right: 50% !important;
        transform: translateX(50%) !important;
    }

    #scrollMenu {
        height: auto !important;
        padding: 15px 0
    }

    .navbar-toggler {
        position: absolute;
        right: 0;
        top: 5px;
    }
}