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

    --green: #6BCD60;
    --blue: #3AC9E1;
}

@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;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

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

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

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

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

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

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

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

.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;
}

h2 {
    font-size: 4rem;
}

h5 {
    font-size: 2rem;
}

.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%);
}

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

.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);
}

.iconStat {
    width: 130px;
    height: 130px;
}

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

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

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

/*media query*/
@media (max-width: 768px) {
    .header {
          height: 1300px;
    }

    .header img {
          margin-top: calc(50vh + 140px);
          width: 100%;
    }

    h3 {
          font-size: 60px;
    }

    .offerCircleCheck {
          margin: 0 10px 0 0 !important;
          float: left;
          text-align: center;
    }
}

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

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

.frise {
    position: relative;
}

.frise-codekeeners::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    background: url('../images/codekeeners/bg-codekeeners.png') center/cover no-repeat;
}

.frise-codekeeners.fixed-frise::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    background: url('../images/codekeeners/bg-codekeeners.png') center/cover no-repeat fixed;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    background: url('../images/codekeeners/bg-codekeeners.png') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero::after {
    position: absolute;
    height: 100%;
    width: 100%;
    content: '';
    top: 0;
    left: 0;
    background: var(--codekeeners-primary-color);
    z-index: -99;
}

.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;
}

.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-hour {
    position: absolute;
    bottom: 15rem;
    right: 0%;
    width: 100%;
    background-color: var(--codekeeners-secondary-color);
    color: var(--codekeeners-primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
}

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

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

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

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

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

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

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

.codekeeners .thematic-box {
    border-radius: 1rem;
    height: 100%;
    transition: transform 0.3s;
    cursor: pointer;
    background: var(--codekeeners-secondary-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

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

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

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

/* Handwriting effect */
#univers-word {
    display: inline-block;
    vertical-align: middle;
    height: 60px;
}

#univers-word path {
    stroke: white;
    stroke-width: 4;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

@media (max-width: 768px) {
    /* .container {
        padding: 1rem;
    } */
    .hero {
        position: relative;
        height: 100vh;
        background: url('../images/codekeeners/bg-codekeeners-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;
        margin: 110px 0 0 0;
    }
    .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%;
        height: auto;
    }
    
    .hero-hour {
        width: 80dvw;
        z-index: 999;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%) !important;
    }

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

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

/* 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);
  }
}

.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;
}

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

.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;
}

.codekeeners .accordion-button:not(.collapsed), .accordion-item:has(.accordion-button:not(.collapsed)) {
    background: var(--codekeeners-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);
}

#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(--codekeeners-secondary-color);
    color: var(--codekeeners-primary-color) !important;
}