@charset "utf-8";


/* --- Font Imports --- */
@font-face {
    font-family: 'TradeGothicLTStd-Cn18';
    src: url('../font/TradeGothicLTStd-Cn18/TradeGothicLTStd-Cn18.eot?#iefix') format('embedded-opentype'),
         url('../font/TradeGothicLTStd-Cn18/TradeGothicLTStd-Cn18.otf') format('opentype'),
         url('../font/TradeGothicLTStd-Cn18/TradeGothicLTStd-Cn18.woff') format('woff'),
         url('../font/TradeGothicLTStd-Cn18/TradeGothicLTStd-Cn18.ttf') format('truetype'),
         url('../font/TradeGothicLTStd-Cn18/TradeGothicLTStd-Cn18.svg#TradeGothicLTStd-Cn18') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TradeGothicLTStd-Bold';
    src: url('../font/TradeGothicLTStd-Bold/TradeGothicLTStd-Bold.eot?#iefix') format('embedded-opentype'),
         url('../font/TradeGothicLTStd-Bold/TradeGothicLTStd-Bold.otf') format('opentype'),
         url('../font/TradeGothicLTStd-Bold/TradeGothicLTStd-Bold.woff') format('woff'),
         url('../font/TradeGothicLTStd-Bold/TradeGothicLTStd-Bold.ttf') format('truetype'),
         url('../font/TradeGothicLTStd-Bold/TradeGothicLTStd-Bold.svg#TradeGothicLTStd-Bold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TradeGothicLTStd-Light';
    src: url('../font/TradeGothicLTStd-Light/TradeGothicLTStd-Light.eot?#iefix') format('embedded-opentype'),
         url('../font/TradeGothicLTStd-Light/TradeGothicLTStd-Light.otf') format('opentype'),
         url('../font/TradeGothicLTStd-Light/TradeGothicLTStd-Light.woff') format('woff'),
         url('../font/TradeGothicLTStd-Light/TradeGothicLTStd-Light.ttf') format('truetype'),
         url('../font/TradeGothicLTStd-Light/TradeGothicLTStd-Light.svg#TradeGothicLTStd-Light') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* --- General Body & Helper Classes --- */
body {
    user-select: none;
    -moz-user-select: none;
    overflow: hidden;
    background-color: black;
}

.depart {
    opacity: 0;
}

.opacite {
    opacity: 0;
}

.blur {
    filter: blur(0.8px);
}

.clicked {
    box-shadow: 0 0 0 5px #E5FF4F;
}

/* --- Keyframe Animations --- */
@keyframes lines {
    0% {
        background-position: 0px 0px;
    }
    100% {
        background-position: 0px 25px;
    }
}

@-webkit-keyframes mask-play {
    from {
        -webkit-mask-position: 0% 0;
        mask-position: 0% 0;
    }
    to {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
}

@keyframes mask-play {
    from {
        -webkit-mask-position: 0% 0;
        mask-position: 0% 0;
    }
    to {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Page Structure & Containers --- */
#pageIntro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
}

#bloc1 {
    z-index: 10;
    position: absolute;
    width: 50%;
    height: 100%;
    left: 0%;
    top: 0%;
    margin-left: -20%;
    margin-top: -20%;
    transform-origin: left;
    background-color: #2B2B2B;
    transform: rotate(45deg) scale(6);
}

#page1, #page2, #page3, #page5, #page6 {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: black;
}

#page1 { z-index: -1; }
#page2 { z-index: -999999999999999999999999999999999; }
#page3 { z-index: -999999999999999999999999999999999; }
#page5 { z-index: -999999999999999999999999999999999; }
#page6 { z-index: -999999999999999999999999999999999; left: 500%; }

#page4 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Header & Navigation --- */
#barremenu {
    position: fixed;
    width: 100%;
    height: 5%;
    top: 0;
    left: 0;
    z-index: 3;
}

#logo {
    background: url(../img/etfiTest2.webp) 50% 50%;
    background-size: cover;
    width: 50px;
    height: 50px;
    position: fixed;
    top: 80px;
    left: 80px;
    z-index: 99999999999999999999999999999999999999999;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
}

#menu {
    position: fixed;
    width: 870px;
    height: 30px;
    top: 85px;
    right: 85px;
    margin-top: -5px;
    margin-bottom: -5px;
    text-align: right;
    color: white;
    z-index: 5;
}

#menu a {
    text-align: right;
    text-transform: uppercase;
    font-family: 'TradeGothicLTStd-Light';
    font-size: 13px;
    display: inline;
    margin-right: 50px;
    letter-spacing: 2px;
    transition: 0.2s;
    margin-top: -5px;
    margin-bottom: -5px;
    color: white;
}

#bt1 {
    color: #E5FF4F;
}

#lignebtns {
    position: absolute;
    bottom: 0;
    left: 0px;
    height: 2px;
    width: 120px;
    background-color: white;
}

#hyperlink, #hyperlink2, #hyperlink3 {
    text-transform: uppercase;
    font-family: 'TradeGothicLTStd-Light';
    letter-spacing: 2px;
    color: yellowgreen;
}

#hyperlink:hover, #hyperlink2:hover, #hyperlink3:hover {
    color: orange;
    font-style: italic;
}

/* --- Partner Logos --- */
#logo_FWB {
    background: url("../img/Logo_FWB.webp") 50% 50%;
    background-size: cover;
    width: 100px;
    height: 85px;
    position: fixed;
    bottom: 150px;
    left: 60px;
    z-index: 99999999999999999999999999999999999999999;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
}

#logo_ERASMUS {
    background: url("../img/EU.webp") 50% 50%;
    background-size: cover;
    width: 250px;
    height: 210px;
    position: fixed;
    bottom: 230px;
    left: -16px;
    transform-origin: center;
    transform: scale(0.4);
    z-index: 99999999999999999999999999999999999999999;
    background-color: rgba(0, 0, 0, 0);
    padding: 5px;
}

#logo_Ensama {
    background: url("../img/ENSANA_logo_Icon-Typo_Indigo.webp") 50% 50%;
    background-size: cover;
    width: 140px;
    height: 130px;
    position: fixed;
    top: 450px;
    left: 40px;
    transform-origin: center;
    transform: scale(0.6);
    z-index: 99999999999999999999999999999999999999999;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
}

/* --- Content Blocks & Typography --- */
#bloctext {
    position: relative;
    width: 620px;
    height: 400px;
    font-family: 'TradeGothicLTStd-Cn18';
    z-index: 2;
    left: 18%;
    top: 20%;
    text-transform: uppercase;
    text-align: left;
    color: white;
}

#bloctext h1 {
    font-size: 55px;
    line-height: 55px;
    font-family: 'TradeGothicLTStd-Bold';
    font-weight: bolder;
    color: #E5FF4F;
    margin-right: 0;
}

#bloctext h2 {
    font-size: 12px;
    font-family: 'TradeGothicLTStd-Bold';
    font-weight: bolder;
    letter-spacing: 3px;
}

#bloctext h3 {
    font-size: 13px;
    font-family: 'TradeGothicLTStd-Light';
    line-height: 15px;
    text-transform: none;
    letter-spacing: 1px;
    margin-left: 20px;
}

#bloctext p {
    font-size: 21px;
    text-transform: none;
    font-weight: bold;
}

.content-wrapper {
    position: relative;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    gap: 20px;
}

.left-section {
    flex: 3;
    position: relative;
    display: flex;
    flex-direction: column;
}

.right-section {
    flex: 1;
    position: absolute;
    display: flex;
    z-index: initial;
    right: 0;
    margin-left: 20px;
    flex-direction: column;
}

.join-us-btn {
    background: #f2ff3f;
    color: #000;
    padding: 14px 28px;
    font-family: 'TradeGothicLTStd-Light', sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.join-us-btn:hover {
    background: linear-gradient(135deg, #e7eb0b, #f2ff03);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* --- Page 3: Events Grid(1) --- */
.events-container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 0.6fr;
    gap: 15px;
    height: auto;
    min-height: 600px;
    max-height: 50vh;
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 10px;
}

.event-space {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100px;
    /* Loading animation */
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.event-space::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
    z-index: 1;
}

.event-space:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(229, 255, 79, 0.3);
    opacity: 1;
    transition-delay: 0.2s;
}

.event-space:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.event-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    color: white;
    z-index: 2;
    background: linear-gradient(transparent 50%, rgba(10, 10, 10, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.event-space:hover .event-content {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
}

.event-title {
    font-weight: bold;
    margin: 0;
    color: #E5FF4F;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'TradeGothicLTStd-Bold', Arial, sans-serif;
    line-height: 1.1;
    word-break: break-word;
}

/* Event Grid Positioning */
.event-space:nth-child(1) { grid-row: 1 / 3; grid-column: 1; }
.event-space:nth-child(2) { grid-row: 1; grid-column: 2; }
.event-space:nth-child(3) { grid-row: 1; grid-column: 3; }
.event-space:nth-child(4) { grid-row: 2; grid-column: 2; }
.event-space:nth-child(5) { grid-row: 2; grid-column: 3; }
.event-space:nth-child(6) { grid-row: 3; grid-column: 1 / 4; }

/* Event Grid Animation Delays */
.event-space:nth-child(1) { animation-delay: 0.1s; }
.event-space:nth-child(2) { animation-delay: 0.2s; }
.event-space:nth-child(3) { animation-delay: 0.3s; }
.event-space:nth-child(4) { animation-delay: 0.4s; }
.event-space:nth-child(5) { animation-delay: 0.5s; }
.event-space:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Styles for Events Grid */
/* Desktop (1200px+) */
@media (min-width: 1200px) {
    .events-container {
        max-width: 1100px;
        gap: 18px;
        max-height: 45vh;
    }
    .event-space:nth-child(1) .event-title { font-size: 3.5rem; }
    .event-space:nth-child(2) .event-title { font-size: 1.8rem; }
    .event-space:nth-child(3) .event-title { font-size: 1.8rem; }
    .event-space:nth-child(4) .event-title { font-size: 1.8rem; }
    .event-space:nth-child(5) .event-title { font-size: 2.2rem; }
    .event-space:nth-child(6) .event-title { font-size: 3rem; }
}

/* Large screens (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .events-container {
        max-width: 950px;
        gap: 15px;
        max-height: 50vh;
    }
    .event-space:nth-child(1) .event-title { font-size: 3.2rem; }
    .event-space:nth-child(2) .event-title { font-size: 1.6rem; }
    .event-space:nth-child(3) .event-title { font-size: 1.6rem; }
    .event-space:nth-child(4) .event-title { font-size: 1.6rem; }
    .event-space:nth-child(5) .event-title { font-size: 2rem; }
    .event-space:nth-child(6) .event-title { font-size: 2.8rem; }
}

/* Medium screens (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .events-container {
        max-width: 750px;
        gap: 12px;
        max-height: 55vh;
        grid-template-rows: 1fr 1fr 0.7fr;
    }
    .event-content { padding: 15px; }
    .event-space:nth-child(1) .event-title { font-size: 2.8rem; }
    .event-space:nth-child(2) .event-title { font-size: 1.4rem; }
    .event-space:nth-child(3) .event-title { font-size: 1.4rem; }
    .event-space:nth-child(4) .event-title { font-size: 1.4rem; }
    .event-space:nth-child(5) .event-title { font-size: 1.6rem; }
    .event-space:nth-child(6) .event-title { font-size: 2.4rem; }
}

/* Small tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .events-container {
        max-width: 550px;
        gap: 10px;
        grid-template-columns: 1.8fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 0.8fr;
        max-height: 60vh;
    }
    .event-content { padding: 12px; }
    .event-space:nth-child(1) .event-title { font-size: 2.2rem; }
    .event-space:nth-child(2) .event-title { font-size: 1.2rem; }
    .event-space:nth-child(3) .event-title { font-size: 1.2rem; }
    .event-space:nth-child(4) .event-title { font-size: 1.2rem; }
    .event-space:nth-child(5) .event-title { font-size: 1.3rem; }
    .event-space:nth-child(6) .event-title { font-size: 2rem; }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
    .events-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 150px);
        height: auto;
        gap: 8px;
        max-height: none;
        width: 100%;
        padding: 0 15px;
    }
    .event-space:nth-child(1) { grid-row: 1; grid-column: 1; }
    .event-space:nth-child(6) { grid-column: 1; grid-row: 6; }
    .event-content {
        padding: 15px;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    }
    .event-space:nth-child(1) .event-title,
    .event-space:nth-child(6) .event-title {
        font-size: 1.8rem;
    }
    .event-space:nth-child(2) .event-title,
    .event-space:nth-child(3) .event-title,
    .event-space:nth-child(4) .event-title,
    .event-space:nth-child(5) .event-title {
        font-size: 1.4rem;
    }
}

/* --- Page 3: ARTVILLE (2) --- */
#Programs-bloctext {
    position: relative;
    width: 740px;
    height: 440px;
    font-family: 'TradeGothicLTStd-Cn18';
    z-index: 2;
    left: 30%;
    top: 25%;
    text-transform: uppercase;
    text-align: left;
    color: white;
}

#Programs-bloctext h1 {
    font-size: 55px;
    line-height: 55px;
    font-family: 'TradeGothicLTStd-Bold';
    font-weight: bolder;
    color: #E5FF4F;
    margin-right: 0;
}

#Programs-bloctext h2 {
	margin-top: 10px;
    font-size: 12px;
    font-family: 'TradeGothicLTStd-Bold';
    font-weight: bolder;
    letter-spacing: 3px;
}

#Programs-bloctext h3 {
    font-size: 13px;
    font-family: 'TradeGothicLTStd-Light';
    line-height: 15px;
    text-transform: none;
    letter-spacing: 1px;
    margin-left: 20px;
}

#Programs-bloctext p {
    font-size: 21px;
    text-transform: none;
    font-weight: bold;
}

.Programs-content-wrapper {
    position: relative;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    gap: 20px;
}

.Programs-section {
    flex: 3;
    position: relative;
    display: flex;
    flex-direction: column;
}

.Programs-button {
    background: #f2ff3fa2;
    padding: 14px 28px;
    font-family: 'TradeGothicLTStd-Light', sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: none;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.Programs-button:hover {
    background: #f2ff3fc9;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}


.Programs-bloctext a {
	color:white;
	font-weight: bold;
}

/* --- Page 3: CANNES FESTIVAL (3) --- */
/* --- Page 3: PHYGITAL ARTS (4) --- */

/* --- Page 3: Carousel(5) --- */
.carousel-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 15%;
    width: 100%;
    max-width: 860px;
    min-height: 230px;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.656);
    z-index: 3;
}

.carousel-nav {
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav.prev {
    left: 90px;
}

.carousel-nav.next {
    right: 90px;
}

.carousel-indicators {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.indicator-dot.active {
    background-color: #E5FF4F;
    border-color: #E5FF4F;
    transform: scale(1.3);
    display: block;
}

/* --- Page 4: Teachers Grid --- */
.page-header {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    width: 100%;
}

.page-header h1 {
    font-size: clamp(28px, 3.5vw, 42px);
    color: #f4f442;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-title {
    font-size: clamp(28px, 3.5vw, 42px);
    color: #f4f442;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: clamp(10px, 1.2vw, 20px);
    width: 100%;
    max-width: 1200px;
    height: 60vh;
    max-height: 600px;
    min-height: 350px;
    flex: 1;
    overflow: hidden;
    margin: 0 auto;
}

.teacher-card {
    min-width: 0;
    width: 100%;
    min-height: 150px;
    height: auto;
    background: rgba(224, 224, 224, 0.886);
    border-radius: clamp(6px, 1vw, 12px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.teacher-image {
    width: 100%;
    height: 65%;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.teacher-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.teacher-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 30%;
    flex-shrink: 0;
    overflow: hidden;
}

.teacher-role {
    color: #7f8c8d;
    font-size: clamp(7px, 0.8vw, 11px);
    font-weight: 500;
    margin-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.teacher-name {
    font-size: clamp(10px, 1.1vw, 16px);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: -3px;
    margin-top: 3px;
    line-height: 1.1;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.teacher-link {
    display: inline-block;
    background: #f9ff45;
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: clamp(7px, 0.8vw, 11px);
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.teacher-link:hover {
    background: #e8dc3e;
    transform: translateY(-1px);
}

/* Teacher Image Backgrounds */
.teacher-1 { background: url("../img/img_333.webp") 57% 50% no-repeat; background-size: cover; }
.teacher-2 { background: url("../img/img_5.webp") 50% 30% no-repeat; background-size: cover; }
.teacher-3 { background: url("../img/img_Louisa1.webp") 50% 50% no-repeat; background-size: cover; }
.teacher-4 { background: url("../img/img_Margarita_1.webp") 50% 50% no-repeat; background-size: cover; }
.teacher-5 { background: url("../img/img_Elena1.webp") 70% 15% no-repeat; background-size: cover; filter: grayscale(100%); }
.teacher-6 { background: url("../img/WIM.webp") 50% 50% no-repeat; background-size: cover; }
.teacher-7 { background: url("../img/pHIL.webp") 70% 15% no-repeat; background-size: cover; filter: grayscale(100%); }
.teacher-8 { background: url("../img/Mikhail.webp") 70% 15% no-repeat; background-size: cover; filter: grayscale(100%); }

/* Responsive Design for Different Screen Sizes */
@media (max-width: 1400px) {
    #page4 {
        padding: 15px;
    }
    
    .teachers-grid {
        max-width: 1000px;
        gap: clamp(8px, 1vw, 15px);
    }
}

@media (max-width: 1200px) {
    .teachers-grid {
        max-width: 900px;
        gap: clamp(8px, 1vw, 12px);
        height: calc(100vh - 160px);
        max-height: 550px;
    }
    
    .page-title {
        font-size: clamp(24px, 3vw, 36px);
        margin-bottom: 12px;
    }
}

@media (max-width: 1000px) {
    .teachers-grid {
        max-width: 800px;
        gap: 10px;
    }
    
    .teacher-info {
        padding: clamp(4px, 0.8vw, 10px);
    }
}

@media (max-width: 768px) {
    #page4 {
        top: 80px;
        padding: 10px;
    }
    
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        height: calc(100vh - 120px);
        max-height: none;
        gap: 8px;
        max-width: 100%;
    }
    
    .page-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .page-header {
        margin-bottom: 15px;
    }
    
    .teacher-info {
        padding: clamp(4px, 1vw, 8px);
    }
}

@media (max-width: 480px) {
    #page4 {
        top: 70px;
        padding: 8px;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
        gap: 6px;
        height: calc(100vh - 100px);
    }
    
    .teacher-card {
        border-radius: 6px;
    }
    
    .teacher-info {
        padding: 4px;
    }
    
    .page-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .page-header {
        margin-bottom: 10px;
    }
}

/* Large screens optimization */
@media (min-width: 1600px) {
    .teachers-grid {
        max-width: 1300px;
        gap: clamp(15px, 1.5vw, 25px);
    }
}

/* --- Page 5 Specific Styles --- */
#grandbloc2 {
    position: absolute;
    top: 50%;
    margin-top: -300px;
    left: 20%;
    width: 500px;
    height: 600px;
    z-index: 2;
    color: white;
    font-family: 'TradeGothicLTStd-Bold';
    text-align: left;
}

#grandbloc2 h1 {
    font-weight: bolder;
    font-size: 80px;
    color: #E5FF4F;
}

#grandbloc2 h3 {
    font-family: 'TradeGothicLTStd-Bold';
    font-size: 10px;
    letter-spacing: 5px;
    margin-top: 70px;
    color: #E5FF4F;
}

#grandbloc2 p {
    font-weight: lighter;
    font-size: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    padding-left: 0;
    column-count: 1;
    column-gap: 100px;
    letter-spacing: 1px;
}

#imagep5 {
    position: absolute;
    background: url(../img/la2.webp) 50% 50%;
    filter: contrast(180%);
    background-size: cover;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    z-index: -1;
}

#page5 span {
    position: absolute;
    font-size: 15px;
    color: lightgrey;
    bottom: 80px;
    right: 80px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    opacity: 0.7;
}

/* --- Page 6 Specific Styles --- */
#blocp6 {
    position: absolute;
    top: 55%;
    margin-top: -300px;
    left: 20%;
    width: 450px;
    height: 600px;
    z-index: 2;
    color: white;
    font-family: 'TradeGothicLTStd-Bold';
    text-align: left;
}

#blocp6 h1 {
    font-weight: bolder;
    font-size: 55px;
    text-transform: uppercase;
    color: #E5FF4F;
}

#blocp6 p {
    font-weight: lighter;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 22px;
    color: lightgrey;
}

#blocp6 a {
    color: white;
}

#blocp6 a:hover {
    color: #E5FF4F;
    transition: 0.5s;
}

/* --- Image & Video Backgrounds --- */
#imagedeb {
    position: absolute;
    background: url(../img/image1.webp) 50% 50%;
    background-size: cover;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

#image1 {
    background: url() 50% 50%;
    background-size: cover;
    position: absolute;
    width: 657px;
    height: 438px;
    top: 0%;
    right: 3%;
    z-index: 9999999999999999999999999999999999999999999999;
}

#image2 {
    position: absolute;
    background: url(../img/../img/image222.webp) 50% 50%;
    background-size: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#image4 {
    position: absolute;
    background: url(../img/../img/3.webp) 50% 50%;
    background-size: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -99999;
}

#conteneurVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2222222222222222;
    overflow: hidden;
}

#vid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    min-height: 100%;
    min-width: 100%;
    z-index: -2222222222222222;
}

/* --- Image Slider / Grand Bloc --- */
#grandbloc {
    position: absolute;
    width: 100%;
    height: 500%;
    top: 0;
    left: 0;
    z-index: 1;
}

#blocimg1, #blocimg2, #blocimg3, #blocimg4, #blocimg5, #blocimg6 {
    position: absolute;
    z-index: 1;
    left: 0;
    width: 100%;
    height: 20%;
}

#blocimg1 { top: 0%; }
#blocimg2 { top: 20%; background: #424242; }
#blocimg3 { top: 40%; background: #424242; }
#blocimg4 { top: 60%; background: #424242; }
#blocimg5 { top: 80%; background: #424242; }
#blocimg6 { top: 80%; background: #424242; } /* Note: Same as blocimg5 */

#p3img1, #p3img2, #p3img3, #p3img4, #p3img5, #p3img6 {
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: 50% 50%;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#p3img1 { background-image: url(../img/la5.webp); }
#p3img2 { background-image: url(../img/la2.webp); }
#p3img3 { background-image: url(../img/la3.webp); }
#p3img4 { background-image: url(../img/la4.webp); }
#p3img5 { background-image: url(../img/la1.webp); }
#p3img6 { background-image: url(../img/la6.webp); }

/* --- Miscellaneous UI Elements --- */
a:hover {
    cursor: pointer;
}

.num {
    font-weight: bolder;
    color: grey;
}

.bloctxtImage {
    position: absolute;
    left: 50%;
    margin-left: -450px;
    bottom: 10%;
    width: 900px;
    height: 200px;
    text-align: center;
    font-family: 'TradeGothicLTStd-Bold';
    text-transform: uppercase;
    color: white;
    z-index: 3;
}

.bloctxtImage.active {
    opacity: 1;
    visibility: visible;
}

.bloctxtImage h1 {
    color: #E5FF4F;
    font-size: 60px;
    transform-origin: center;
    transform: scale(0.8) translateY(50px);
    margin-top: -60px;
}

.bloctxtImage p {
    color: white;
    font-size: 15px;
    padding: 20px;
}

#conteneurNext {
	position: absolute;
	width: 20px;
	height: 150px;
	z-index: 2;
	right: 80px;
	top: 50%;
	margin-top: -75px;
	
}
#crochet1:hover{
	cursor:pointer ;
	
	
}
#crochet2:hover{
	cursor:pointer;
	
}
#btPlay {
	opacity: 0.4
}
#crochet1 {
	background:url(../img/crochetsss11.webp) 50% 50%;
	background-size: cover;
	position: absolute;
	width: 20px;
	height: 20px;
	transform: rotate(-90deg);
	top: 0%;
	right: 50%;
	margin-right: -10px;
	z-index: 2;
	transform-origin: center;
	
}

#chiffre{
	position: absolute;
	top: 50%;
	right: 50%;
	margin-top: -27px;
	margin-right: -4px;;
	font-family: 'TradeGothicLTStd-Bold';
	font-size: 15px;
	z-index: 2;
	color: #E5FF4F;
	text-align: center;
	
}
#slash {
	position: absolute;
	transform: rotate(-110deg);
	right: 2px;
}
#crochet2 {
	background:url(../img/crochetsss22.webp) 50% 50%;
	background-size: cover;
	position: absolute;
	width: 20px;
	height: 20px;
	bottom: 0%;
	right:50%;
	margin-right: -10px;
	transform: rotate(-90deg);
	z-index: 2;
	transform-origin: center;

	
}

/* --- Fullscreen Image Overlay Section --- */
#images {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    z-index: 9999999999999999999999999999999999;
}

#images h1 {
    color: #E5FF4F;
    text-transform: uppercase;
    font-family: 'TradeGothicLTStd-Bold';
    font-size: 20px;
    letter-spacing: 2px;
}

#images a {
    color: white;
    text-transform: uppercase;
    font-family: 'TradeGothicLTStd-Bold';
    font-size: 10px;
    letter-spacing: 2px;
}

#images a:hover {
    cursor: pointer;
}

.txtp3 {
    left: 50%;
    margin-left: -150px;
    position: absolute;
    bottom: 75px;
    z-index: 99999999999999999999999999999999999999999999999;
    width: 300px;
    height: 50px;
    text-align: center;
}

.txttp3 {
    left: 50%;
    margin-left: -100px;
    position: absolute;
    bottom: 50px;
    z-index: 99999999999999999999999999999999999999999999999;
    width: 200px;
    height: 40px;
    text-align: center;
}

.txtProg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 80px;
    color: greenyellow;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    width: 200px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border: 1px solid greenyellow;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: -65px;
}

.txtProg:hover {
    background-color: greenyellow;
    color: black;
}

#content1, #content2, #content3, #content4, #content5 {
    height: 100%;
    width: 20%;
    position: absolute;
    top: 0;
    z-index: 99999999999999999999999999999999999999999999;
    overflow: hidden;
}

#content1 { left: 0%; }
#content2 { left: 20%; }
#content3 { left: 40%; }
#content4 { left: 60%; }
#content5 { left: 80%; }