*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    background: linear-gradient(180deg, #141414 0%, #101010 50%, #0d0d0d 100%);
    color: #000000;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 60px;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 60%);
    pointer-events: none;
}

.navbar a {
    color: rgba(255, 255, 255, 0.75);
    margin-left: 25px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 1px;
    background: white;
    transition: 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

.navbar-title h2 {
    margin: 0;
    font-size: clamp(0.9rem, 3vw, 26px);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 0 0 30px rgba(255, 255, 255, 0.15);
}

.navbar-title span {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.logo {
    height: 60px;
    width: auto;
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.burger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.5s ease;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    filter: blur(120px);
}

.hero::before {
    top: 20%;
    left: 10%;
    animation: floatGlow 6s ease-in-out infinite;
}

.hero::after {
    bottom: 10%;
    right: 15%;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero h1 {
    font-size: 3rem;
    animation: fadeUp 1s ease;
}

.hero p {
    opacity: 0.7;
    animation: fadeUp 1.4s ease;
}

.section {
    padding: 80px 60px;
    animation: fadeUp 1s ease;
}

.dark {
    background: #0d0d0d;
}

.galerie-page {
    background: radial-gradient(circle at top, #1a1a1a 0%, #0d0d0d 45%), #0d0d0d;
}

.galerie-page .section {
    position: relative;
}

.galerie-page .section::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(120, 120, 255, 0.04) 30%, transparent 70%);
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    width: 100%;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.card:hover {
    transform: translateY(-12px) scale(1.025);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(255, 255, 255, 0.05);
}

.card::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -40%;
    width: 60%;
    height: 300%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: rotate(25deg);
    transition: 0.7s ease;
    z-index: 2;
}

.card:hover::before {
    left: 140%;
}

.card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: 0.4s ease;
}

.card:hover::after {
    opacity: 1;
}

.card h3 {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s ease;
}

.card:hover h3 {
    opacity: 1;
    transform: translateY(0);
}

.text-block {
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.95), rgba(16, 16, 16, 0.92));
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 35px;
    line-height: 1.9;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.text-block h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.05);
}

.text-block p {
    color: #b5b5b5;
}

.text-block h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.05);
}

.text-block p {
    color: #b5b5b5;
}

/*========================Materiel Technique==================================*/

body.materiel-page {
    padding: 0;
    background: radial-gradient(circle at top, #1a1a1a 0%, #0d0d0d 45%), #0d0d0d;
    color: #e8e8e8;
}

section.materiel-page {
    position: relative;
    padding: 100px 60px;
    overflow: hidden;
}

section.materiel-page::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), rgba(120, 120, 255, 0.04), transparent 70%);
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

section.materiel-page>* {
    position: relative;
    z-index: 1;
}

.materiel-page .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.materiel-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    width: 100%;
    height: 380px;
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(15, 15, 15, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.materiel-card:hover {
    transform: translateY(-12px) scale(1.025);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 25px rgba(255, 255, 255, 0.05);
}

.materiel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.5s ease;
    filter: brightness(0.92) contrast(1.04);
}

.materiel-card:hover img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.08);
}

.materiel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    opacity: 0;
    transition: 0.4s ease;
}

.materiel-card:hover::after {
    opacity: 1;
}

.materiel-card h3 {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s ease;
}

.materiel-card:hover h3 {
    opacity: 1;
    transform: translateY(0);
}

/*========================================================*/

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.95), rgba(14, 14, 14, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    isolation: isolate;
}

.carousel::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(120, 120, 255, 0.05), transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.carousel-container {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    position: relative;
    z-index: 1;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease, filter 0.6s ease;
    filter: brightness(0.92) contrast(1.05);
}

.carousel:hover img {
    transform: scale(1.04);
    filter: brightness(1) contrast(1.08);
}

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 35%, transparent 65%, rgba(0, 0, 0, 0.25));
    z-index: 2;
    pointer-events: none;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 15, 15, 0.72);
    backdrop-filter: blur(12px);
    color: white;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.35s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.carousel-button:hover {
    transform: translateY(-50%) scale(1.08);
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 255, 255, 0.06);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: all 0.35s ease;
}

.carousel-dots .dot.active {
    width: 34px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.materiel-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.materiel-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.materiel-carousel .carousel-track .materiel-card {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    height: auto;
}

.materiel-carousel .carousel-track .materiel-card img {
    max-height: 320px;
    width: auto;
    margin: 0 auto;
    border-radius: 18px;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.4s ease;
}

.materiel-carousel .carousel-track .materiel-card:hover img {
    transform: scale(1.03);
    filter: brightness(1.05) contrast(1.05);
}

.bottom-block {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
    font-size: 20px
}

.text-block,
.bottom-block .carousel {
    flex: 1 1 300px;
    min-width: 0;
    padding: 25px;
    border-radius: 12px;
    background: #151515;
    border: 1px solid #222;
    transition: transform 0.3s;
}

.text-block:hover,
.bottom-block .carousel:hover {
    transform: scale(1.02);
}

.about-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
    background: rgba(20, 20, 20, 0.75);
    border: 1px solid #222;
    border-radius: 24px;
    padding: 35px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.about-img {
    flex: 0 0 320px;
    width: 320px;
    height: 320px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.04);
    transition: transform 0.4s ease;
}

.about-img:hover {
    transform: translateY(-6px) scale(1.02);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1 1 260px;
    min-width: 0;
}

.big-text {
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    margin: 18px 0;
    border-radius: 14px;
    padding: 22px;
    line-height: 1.8;
    border: 1px solid #242424;
    color: #cfcfcf;
    animation: fadeUp 1.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tags span {
    background: rgba(255, 255, 255, 0.03);
    color: #d5d5d5;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tags span:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.tags a {
    text-decoration: none;
    color: inherit;
}

.info-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #222;
}

.info-item {
    flex: 1 1 180px;
    text-align: center;
    padding: 24px;
    border-radius: 18px;
    background: #141414;
    border: 1px solid #222;
    transition: all 0.35s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.info-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.info-item h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.info-item p {
    color: #8f8f8f;
    font-size: 0.95rem;
}

/*=============CONTACT==================*/

.contact-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.contact-subtitle {
    color: #999;
    max-width: 700px;
    line-height: 1.7;
}

.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
    background: rgba(20, 20, 20, 0.75);
    border: 1px solid #222;
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.contact-form {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #222;
    background: #161616;
    color: #e6e6e6;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04), 0 0 18px rgba(255, 255, 255, 0.05);
}

.contact-form button {
    padding: 14px;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #333 0%, #1f1f1f 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 255, 255, 0.05);
}

.contact-info {
    flex: 1 1 280px;
    min-width: 0;
    background: #151515;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #222;
}

/*============================================*/

.footer {
    background: #0a0a0a;
    padding: 40px 60px 20px;
    margin-top: 60px;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1 1 220px;
}

.footer-section h2,
.footer-section h3 {
    margin-bottom: 12px;
    color: white;
}

.footer-section p,
.footer-section a {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #222;
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {

    .footer {
        padding: 20px 12px 10px;
    }

    .footer-content {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        text-align: left;
    }

    .footer-section {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .footer-section h2,
    .footer-section h3 {
        font-size: 0.82rem;
        margin-bottom: 6px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .footer-bottom {
        margin-top: 12px;
        padding-top: 10px;
        font-size: 0.62rem;
        text-align: center;
    }
}

/*Script pour le chargement en chaque changement de page*/

#loader-wrapper {
    position: fixed;
    inset: 0;
    background: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

#loader-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    color: #fff;
    animation: shadowRolling 2s linear infinite;
}

/*MIDNIGHT SKY (UIverse)*/

.uiverse-midnight-sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.uiverse-midnight-sky .sky-canvas {
    position: absolute;
    inset: 0;
    background: #050505;
}

.uiverse-midnight-sky .stars {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
}

.uiverse-midnight-sky .stars-1 {
    background-image: radial-gradient(1px 1px at 10% 10%, #fff, transparent), radial-gradient(1px 1px at 30% 20%, #fff, transparent), radial-gradient(1px 1px at 50% 50%, #fff, transparent), radial-gradient(1px 1px at 70% 30%, #fff, transparent), radial-gradient(1px 1px at 90% 10%, #fff, transparent);
    background-size: 200px 200px;
    animation: twinkle 3s ease-in-out infinite;
}

.uiverse-midnight-sky .stars-2 {
    background-image: radial-gradient(1.5px 1.5px at 20% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 85%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 65%, #fff, transparent);
    background-size: 300px 300px;
    animation: twinkle 5s ease-in-out infinite 1s;
}

.uiverse-midnight-sky .stars-3 {
    background-image: radial-gradient(2px 2px at 40% 70%, #fff, transparent), radial-gradient(2px 2px at 10% 80%, #fff, transparent), radial-gradient(2px 2px at 80% 40%, #fff, transparent);
    background-size: 400px 400px;
    animation: twinkle 7s ease-in-out infinite 2s;
}

.uiverse-midnight-sky .meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 0;
}

.uiverse-midnight-sky .meteor::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
    transform: translateY(-50%);
}

.uiverse-midnight-sky .m1 {
    top: 10%;
    left: 110%;
    animation: shoot 8s linear infinite;
}

.uiverse-midnight-sky .m2 {
    top: 30%;
    left: 110%;
    animation: shoot 12s linear infinite 4s;
}

.uiverse-midnight-sky .m3 {
    top: 50%;
    left: 110%;
    animation: shoot 10s linear infinite 2s;
}

.uiverse-midnight-sky .moon {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 15px 15px 0 #fdfbd3;
    filter: drop-shadow(0 0 15px rgba(253, 251, 211, 0.4));
}

@keyframes floatGlow {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

@keyframes shoot {
    0% {
        transform: translate(0, 0) rotate(-35deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate(-1200px, 800px) rotate(-35deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .burger-btn {
        display: flex;
    }
    .navbar {
        padding: 12px 20px;
        flex-wrap: nowrap;
    }
    .navbar nav,
    .navbar .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(10, 10, 10, 0.97);
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        z-index: 999;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
    .navbar nav.open,
    .navbar .nav-links.open {
        max-height: 300px;
        padding: 12px 20px 20px;
    }
    .navbar nav a,
    .navbar .nav-links a {
        padding: 10px 0;
        width: 100%;
        margin-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
    }
    .navbar nav a:last-child,
    .navbar .nav-links a:last-child {
        border-bottom: none;
    }
    .navbar-title {
        display: none;
    }
    .logo {
        height: 48px;
    }
    .section {
        padding: 40px 20px;
    }
    .grid {
        gap: 15px;
    }
    .card img {
        height: 240px;
    }
    .materiel-page .grid {
        display: none;
    }
    .materiel-carousel {
        display: block;
    }
    .carousel-slide {
        height: 300px;
    }
    .carousel-button {
        padding: 0.5rem;
        font-size: 1rem;
    }
    .bottom-block {
        flex-direction: column;
    }
    .about-container {
        flex-direction: column;
        align-items: center;
    }
    .about-img {
        flex: 0 0 160px;
        width: 160px;
        height: 160px;
    }
    .info-item {
        flex: 1 1 calc(50% - 10px);
    }
    .contact-container {
        flex-direction: column;
    }
    .footer {
        padding: 30px 20px 16px;
    }
    .footer-content {
        flex-direction: row;
        gap: 24px;
    }
    h1 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    h2 {
        font-size: clamp(1.1rem, 5vw, 1.6rem);
    }
}

@media (max-width: 480px) {
    .logo {
        height: 36px;
    }
    .navbar {
        padding: 10px 14px;
    }
    .info-item {
        flex: 1 1 100%;
    }
    .tags {
        flex-direction: column;
    }
    .footer-bottom {
        padding: 12px 16px;
        font-size: 0.82rem;
    }
    .carousel-slide img,
    .materiel-carousel .carousel-track .materiel-card img {
        max-height: 220px;
    }
    .contact-form button {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .materiel-carousel {
        display: none;
    }
    .materiel-page .grid {
        display: grid;
    }
}

/*==============================*/

.section {
    position: relative;
    overflow: hidden;
}

.section::before,
.section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.section::before {
    width: 320px;
    height: 320px;
    background: rgba(120, 120, 255, 0.08);
    top: -120px;
    left: -80px;
    filter: blur(120px);
    animation: floatLight 8s ease-in-out infinite;
}

.section::after {
    width: 260px;
    height: 260px;
    background: rgba(120, 120, 255, 0.08);
    bottom: -100px;
    right: -60px;
    filter: blur(120px);
    animation: floatLight 12s ease-in-out infinite reverse;
}

.section>* {
    position: relative;
    z-index: 1;
}

@keyframes floatLight {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -20px);
    }
}

.legal-page {
    padding: 120px 20px 80px;
    background-color: rgba(10, 10, 10, 0.97);
    min-height: 100vh;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.hero p {
    max-width: 700px;
    margin: auto;
    color: #918f8f;
    line-height: 1.7;
}

.legal-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.legal-card {
    position: relative;
    overflow: hidden;
    background: rgba(18, 18, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.legal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient( 90deg, #7b61ff, #5ac8fa, #00d68f);
}

.legal-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -80px;
    right: -80px;
    border-radius: 50%;
    background: rgba(123, 97, 255, 0.08);
    filter: blur(10px);
    z-index: 0;
}

.legal-card * {
    position: relative;
    z-index: 1;
}

.legal-card:hover {
    transform: translateY(-10px);
    border-color: rgba(123, 97, 255, 0.35);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 0 10px 25px rgba(123, 97, 255, 0.18);
}

.legal-card h2 {
    color: #ffffff;
    font-size: 1.45rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.legal-card h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 12px;
    border-radius: 10px;
    background: linear-gradient( 90deg, #7b61ff, #5ac8fa);
}

.legal-card p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.9;
    font-size: 0.98rem;
}

.legal-info p {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .legal-card {
        padding: 22px;
    }
}

section {
    padding: 80px 10%;
    color: #fff;
}

/* =========================
   CONTAINERS
========================= */

.cards-container,
.gallery-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
    justify-items: center;
    width: 100%;
    margin-top: 40px;
}

/* =========================
   CARDS
========================= */

.card {
    width: 100%;
    max-width: 340px;
    min-height: 260px;
    padding: 25px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.gallery-preview-container img {
    width: 100%;
    max-width: 340px;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.35s ease, filter 0.35s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.gallery-preview-container img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 14px 28px;
    border-radius: 12px;
    background: #fff;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    background: #f2f2f2;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }
    .cards-container,
    .gallery-preview-container {
        grid-template-columns: 1fr;
    }
    .card,
    .gallery-preview-container img {
        max-width: 100%;
    }
}

.gallery-preview-container {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 32px;
}

.gallery-preview-container img {
    max-width: 500px;
    height: 320px;
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {

    .section {
        padding: 28px 16px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card {
        border-radius: 18px;
        overflow: hidden;
    }

    .card img {
        height: 220px !important;
        object-fit: cover;
    }

    .carousel {
        border-radius: 18px;
    }

    .carousel-slide {
        height: 240px !important;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-button {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .carousel-button.prev {
        left: 8px;
    }

    .carousel-button.next {
        right: 8px;
    }

    .text-block {
        padding: 20px;
        border-radius: 18px;
    }

    .text-block h2 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .text-block h3 {
        font-size: 1.15rem;
    }

    .text-block p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .bottom-block {
        gap: 16px;
        margin-top: 24px;
    }

    .carousel-dots {
        margin-top: 14px;
        gap: 8px;
    }

    .carousel-dots .dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dots .dot.active {
        width: 24px;
    }
}
.carousel-track {
  display: flex;
}

.materiel-card {
  flex: 0 0 100%;
}

@media (min-width: 769px) {
  .materiel-card {
    flex: 0 0 50%;
  }
}

@media (min-width: 1200px) {
  .materiel-card {
    flex: 0 0 33.333%;
  }
}

@media screen and (max-width: 768px) {

  html {
    font-size: 14px;
  }

  

  .navbar {
    padding: 10px 14px;
  }

  .navbar img,
  .logo {
    max-height: 40px;
  }

  .nav-links a,
  nav a {
    font-size: 14px;
  }

  .burger-btn {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  section {
    padding: 40px 16px;
  }

  .materiel-card,
  .card {
    padding: 14px;
    border-radius: 14px;
  }

  .materiel-card img,
  .card img {
    max-height: 180px;
    object-fit: cover;
  }

  .materiel-carousel,
  .carousel {
    transform: scale(0.95);
    transform-origin: top center;
  }

  .carousel-btn,
  .carousel-button {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .carousel-dots .dot {
    width: 8px;
    height: 8px;
  }

  .carousel-slide img {
    max-height: 240px;
    border-radius: 12px;
  }

  button,
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  footer {
    font-size: 13px;
    padding: 20px 16px;
  }
}

@media screen and (max-width: 480px) {

  html {
    font-size: 13px;
  }

  

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .materiel-card img,
  .carousel-slide img {
    max-height: 200px;
  }

  .carousel-btn,
  .carousel-button {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {

    .footer {
        padding: 16px 8px 8px;
    }

    .footer-content {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .footer-section {
        flex: 1;
        min-width: 0;
    }

    .footer-section h2,
    .footer-section h3 {
        font-size: 0.72rem;
        margin-bottom: 4px;
        white-space: nowrap;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.55rem;
        line-height: 1.2;
    }

    .footer-bottom {
        margin-top: 10px;
        padding-top: 8px;
        font-size: 0.52rem;
    }
}