body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fffbe0;
    
    background-image:
        radial-gradient(circle 32px at 15% 20%, #ffe066 18%, transparent 19%),
        radial-gradient(circle 18px at 70% 40%, #ffe066 18%, transparent 19%),
        radial-gradient(circle 22px at 40% 80%, #ffe066 18%, transparent 19%),
        radial-gradient(circle 14px at 80% 70%, #ffe066 18%, transparent 19%),
        radial-gradient(circle 10px at 60% 25%, #ffe066 18%, transparent 19%),
        radial-gradient(circle 16px at 25% 65%, #ffe066 18%, transparent 19%);
    background-size: 400px 400px;
    background-repeat: repeat;
}

header {
  background: linear-gradient(360deg, #fffbe0 0%, #ffe066 100%);
    color: #4b3f06;
    padding: 18px 0 10px 0;
    text-align: center;
    
}

h1 {
    margin: 0;
}
h3 {
    text-align: center;
}
nav {
    margin: 20px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
}

nav a:hover {
    text-decoration: underline;
}
nav ul {
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

nav ul li {
    display: inline; 
    margin-right: 15px; 
}
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
     background: linear-gradient(240deg, #fffbe0 0%, #ffe066 60%, #f9d923 100%);
    color: #4b3f06;
    box-shadow: 4px 0 16px rgba(249, 217, 35, 0.13);
    color: #222;
    padding: 28px 18px 20px 18px;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    transition:
        transform 0.45s cubic-bezier(.77,0,.18,1),
        box-shadow 0.3s,
        opacity 0.3s;
    z-index: 1000;
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow: visible;
    opacity: 1;
}
.sidebar.retracted {
    transform: translateX(-170px);
    opacity: 1;
}
.toggle-btn {
    position: absolute;
    top: 24px;
    right: -28px;
    background: linear-gradient(135deg, #41729f 60%, #5490b5 100%);
    color: #fff;
    border: none;
    padding: 12px 12px;
    cursor: pointer;
    border-radius: 8px; 
    box-shadow: 2px 2px 8px rgba(0,0,0,0.13);
    transition: background 0.3s, box-shadow 0.3s;
    z-index: 1100;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;   
    height: 40px;  
}
.toggle-btn:hover {
    background: #305a7f;
    box-shadow: 0 4px 16px rgba(34,106,151,0.18);
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 22px;
}

.sidebar ul li a {
     color: #4b3f06;
    text-decoration: none;
    font-size: 1.08rem;
    display: block;
    padding: 12px 18px;
    border-radius: 8px;
    transition: background 0.25s, color 0.25s, box-shadow 0.2s;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar ul li a:hover {
   background:#ffe066ff;
    color: #b88a00;
    box-shadow: 0 2px 8px rgba(249, 217, 35, 0.13);
}
main {
    flex: 1;
    padding: 20px;
    margin-left: 250px;
    transition: margin-left 0.3s cubic-bezier(.4,2,.6,1);
}
main.retracted {
    margin-left: 80px; 
}
footer {
    background: linear-gradient(180deg, #fffbe0 0%, #ffe066 100%);
    color: #4b3f06;
    text-align: center;
    padding: 12px 0 10px 0;
    
    font-weight: 500;
    font-size: 1.08rem;
    width: 100%;
}
.toggle-btn {
    position: absolute;
    top: 24px;
    right: -28px;
    background: linear-gradient(135deg, #ffe066 60%, #fffbe0 100%);
    color: #b88a00;
    border: 3px solid #f9d923;
    padding: 0;
    cursor: pointer;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; 
    box-shadow: 2px 2px 8px rgba(249,217,35,0.13), 0 0 0 4px #fffbe0 inset;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    z-index: 1100;
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    overflow: visible;
}
.toggle-btn::before, .toggle-btn::after {
    content: '';
    position: absolute;
    background: #fffbe0;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
}
.toggle-btn::before {
    width: 10px;
    height: 10px;
    left: 10px;
    top: 12px;
}
.toggle-btn::after {
    width: 7px;
    height: 7px;
    right: 8px;
    bottom: 10px;
}
.toggle-btn:hover {
    background: linear-gradient(135deg, #ffe066 80%, #fffbe0 100%);
    box-shadow: 0 4px 16px rgba(249,217,35,0.18), 0 0 0 4px #ffe066 inset;
    transform: scale(1.08) rotate(-4deg);
    color: #fffbe0;
}
    

.gif-button {
    display: inline-block;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}
.animated-image {
    width: 100px;
    height: auto;  
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.gif-container {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    position: relative;
}
.gif-button:hover .animated-image {
    transform: scale(1.1); 
    opacity: 0.9; 
}
.caption {
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 5px;
    opacity: 0; 
    transition: opacity 0.2s ease-in-out;
}
.gif-button:hover .caption {
    opacity: 1; 
}
.gif-button:active .animated-image {
    transform: scale(0.95); 
    opacity: 1; 
}

.gallery-container {
    position: relative;
    width: 70%;
    max-width: 700px;
    margin: 20px auto;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}
.gallery-track.fade {
    opacity: 0; 
}
.gallery-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3; 
    object-fit: cover; 
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out; 
    
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.gallery-image:hover {
    transform: scale(1.05); 
}
.gallery-indicators {
    text-align: center;
    margin-top: 15px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #5490b5; 
    transform: scale(1.205);
}
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
   color:#fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 20%;
    z-index: 10;
    font-size: 18px;
    transition: background 0.3s ease;
}

.gallery-btn:hover {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
}

.left-btn {
    left: 10px;
}

.right-btn {
    right: 10px;
}
@media (max-width: 768px) {
    .gallery-container {
        width: 90%; 
    }

    .gallery-btn {
        padding: 6px; 
        font-size: 14px;
    }

}
.fullscreen-btn {
    position: relative; 
    
     display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #ffe066 0%, #ffd700 100%);
  color: #3d2f00;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin: 24px auto 0 auto;
}

.fullscreen-btn:hover, .fullscreen-btn:focus {
  background: linear-gradient(90deg, #ffd700 0%, #ffe066 100%);
  transform: none
  color: #222;
}

.fullscreen-icon {
  font-size: 1.5em;
  line-height: 1;
}



.students-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin: 20px;
    transition: all 0.3s ease-in-out; 
}


.container.retracted .students-grid {
    grid-template-columns: repeat(5, 1fr); 
}


@media (max-width: 768px) {
    .students-grid {
        grid-template-columns: repeat(2, 1fr); 
    }

    .container.retracted .students-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-button {
    margin-top: 10px;
    background-color: #fff;
    border: 2px solid #226a97;;
    color: #226a97;;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.filter-button:hover {
    background-color: #dbeafe;
}

.filter-button.active {
    background-color: #226a97;;
    color: #fff;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.student-card {
    background: rgba(255, 251, 160, 0.93);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(249, 217, 35, 0.10);
    border: 2px solid #ffe066;
    transition: transform 0.3s, box-shadow 0.3s;
}
.student-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 5px 15px rgba(249, 217, 35, 0.18);
    background: #ffe066;
}

.student-name {
    color: #b88a00;
}

.student-team {
    color: #4b3f06;
}

.leader-badge {
    background-color: #ffe066;
    color: #b88a00;
    border: none;
}

.filter-button,
.modal-button {
    background-color: #ffe066;
    color: #4b3f06;
    border: 2px solid #b88a00;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}
.filter-button.active,
.filter-button:hover,
.modal-button:hover {
    background-color: #fffbe0;
    color: #b88a00;
}

.student-photo {
    width: 100%;
    height: 300px;
    background-color: #dbeafe;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.student-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

.student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.student-photo:hover img {
    transform: scale(1.05);
}

.leader-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffd700;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.student-info {
    padding: 15px;
    text-align: center;
    cursor: pointer;
}

.student-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.student-team {
    color: #4b5563;
    margin-bottom: 10px;
}

.view-site-button {
    display: inline-block;
    background-color: #226a97;;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.view-site-button:hover {
    background-color: #226a97;;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    padding: 20px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #4b5563;
}

.modal-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-name {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.modal-team {
    text-align: center;
    color: #4b5563;
    margin-bottom: 20px;
}

.modal-button {
    display: block;
    background-color: #226a97;;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s;
}

.modal-button:hover {
    background-color: #226a97;;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 900px;
  height: 60vh;
  margin: 50px auto;
}

.grid-item {
  background: rgba(255, 251, 224, 0.92); 
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: bold;
  text-decoration: none;
  color: hsl(0, 0%, 0%);
  text-shadow: 0 2px 8px rgba(255, 243, 160, 0.7);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(249, 217, 35, 0.10);
  opacity: 1;
  transition: 
    background 0.3s, 
    color 0.3s, 
    transform 0.2s, 
    box-shadow 0.3s, 
    opacity 0.3s;
  overflow: hidden;
  position: relative;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
 
}

.grid-item:hover {
  background: #ffd700;
  transform: scale(1.05);
  color: #000;
}
.back-home-btn {
  display: inline-block;
  margin: 30px 0 20px 30px;
  padding: 12px 28px;
  background: #226a97;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.back-home-btn:hover {
  background: #17476b;
  color: #ffd700;
}




.grid-item span {
  width: 100%;
  background: rgba(255, 251, 224, 0.85); 
  padding: 18px 0 14px 0;
  text-align: center;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  color: #000000;
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background 0.3s, color 0.3s;
  display: block;
  border: 2.5px solid #ffe066;
  box-sizing: border-box;
}

.grid-item:hover {
  opacity: 1;
  box-shadow: 0 8px 32px rgba(249, 217, 35, 0.18);
  transform: scale(1.05) translateY(-4px);
  z-index: 2;
  background: #ffe066;
  color: #4b3f06;
}

.grid-item:hover span {
  color: #fffbe0;
  background: #b88a00;
}


.grid-svt {
  background-image: url('cheese-slice-kawaii-sticker-j4cu32od7k0i64d3.gif');
}
.grid-chimie {
  background-image: url('Cheese Omg Sticker by javadoodles.gif');
}
.grid-geographie {
  background-image: url('Scared Cheese Sticker by Patrick Passaro.gif');
}
.grid-informatique {
  background-image: url('Food Hello Sticker by Jacub Allen.gif');
}


