.nancy{
    color : #F37221;
}

/************************************/
/*** Header : description + image ***/
/************************************/
.header-content {
    margin: 0;
    padding : 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background-color : #FFF;
}

.text-content {
    flex: 1;
    text-align: justify;
}

.text-content h1{
    font-size : 3rem;
    font-weight : bold;
}

.text-content p{
    line-height : 1.5em;
}

.header-content .image-content{
    display : flex;
    align-items: center;
    justify-content: center;
} 

.header-content .image-content figure img {
    width : 100%;
    height: auto;
}

.header-content .image-content figure{
    display: flex;
    flex-direction : column;
    align-items : center;
    justify-content: content;
}

.header-content .image-content figure figcaption{
    margin : 1rem 0 1rem 0;
}

.buttons{
    display : flex;
    justify-content : left;
    align-items : center;
    flex-direction : row;
}

.btn {
    background-color: #f37221;
    border: 1px solid #f37221;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 10px;
    cursor: pointer;
    border-radius : 5px;
}

@media screen and (max-width: 1600px) {
    .header-content{
        flex-direction : column;
        padding : 0 20px 0 20px;
        margin : 0;
    }

    .text-content{
        padding : 20px 0 20px 0;
        display : flex;
        flex-direction : column;
        align-items : center;
        justify-content : center;
    }
}

@media screen and (max-width : 768px){
    .text-content h1{
        font-size : 1.5rem;
    }
}

/**********************************/
/*** Les trois dernières années ***/
/**********************************/
#palmares, #annees_precedentes{
    margin : 0;
    paddin : 0;
    display : flex;
    align-items : center;
    justify-content : center;
    flex-direction : column;
}

.palmares-display{
    width : 100%;
    margin : 0;
    padding : 0;
    display : flex;
    flex-direction : column;
    align-items : center;
    justify-content : center;
}

.palmares-display ul{
    margin : 0;
    padding : 0;
    display : flex;
    flex-wrap : wrap;
    align-items : center;
    justify-content : center;
}

.palmares-display ul li{
    display : flex;
    justify-content : center;
    align-items : center;
    flex-direction : column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin : 1rem;
    border : 2px solid #FFF;
    border-radius : 5px;
}

.palmares-display ul li:hover{
    border-color : #000;
}


.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 300px;
}

.step {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 10px;
    background-color: #bbb;
    border-radius: 5px;
}

.first {
    height: 300px;
    width: auto;
    padding : 10px;
    background-color: gold;
}

.second {
    height: 200px;
    width: auto;
    padding : 10px;
    background-color: silver;
}

.third {
    height: 150px;
    width: auto;
    padding : 10px;
    background-color: #cd7f32;
}

.step img {
    width: 75px;
    height: 75px;
    margin-bottom: 10px;
}

/**************************/
/*** Tableau : palmares ***/
/**************************/
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    display: table;
}

th, td {
    padding: 12px 10px;
    text-align: center;
    word-break: break-word;
}

th {
    background: #F27221;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background: #F27221;
    transition: all 0.3s ease;
}

.rank {
    font-weight: bold;
    color: #6c5ce7;
    font-size: 18px;
}

.medal {
    font-size: 20px;
    margin: 0 5px;
}

.gold { color: #ffd700; }
.silver { color: #c0c0c0; }
.bronze { color: #cd7f32; }

.school-name {
    font-weight: 600;
    color: #2c3e50;
    text-align: left !important;
    padding-left: 15px;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .container {
        padding: 10px;
        margin: 10px 0;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px 6px;
    }

    td:nth-child(5), th:nth-child(5) {
        display: none;
    }

    .medal {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    td:nth-child(4), th:nth-child(4) {
        display: none;
    }

    .medal {
        font-size: 14px;
    }

    th, td {
        padding: 6px 4px;
    }
}

/***************************************/
/*** Carousel photos anciens Cartels ***/
/***************************************/
.galeries{
    width : 100%;
    display : flex;
    align-items : center;
    justify-content : center;
    flex-direction : column;
    margin : 0 2rem 2rem 2rem;
}

#galerie{
    width : 50%;
    display : flex;
    justify-content: center;
    align-items: center;
    flex-direction : column;
    margin : 0 0 2rem 0;
    padding : 0;
}

.galerie-text{
    display: flex;
    width : 100%;
    justify-content: center;
    align-items: center;
    margin : 0;
    padding : 0;
}

.galerie-text h1{
    display : flex;
    justify-content : center;
    align-items : center;
    width : 100%;
    font-size : 3rem;
    font-weight : bold;
}

.carousel {
    position: relative;
    width : 100%;
    margin: 0;
    padding : 0;
    border : 1px solid #000;
    border-radius : 10px;
}

.carousel-inner {
    overflow: hidden;
}

.carousel-item {
    margin : 0;
    padding : 0;
    display: none;
    text-align: center;
    transition : opacity 1s ease-in-out; 
}

.carousel-item.active {
    display: flex;
    align-items : center;
    justify-content : center;
    margin : 0;
    padding : 0;
}

.carousel-item.active img{
    margin : 0;
    padding : 0;
}

.carousel-item img {
    max-width: 100%;
    height : auto;
    margin : 0;
    padding : 0;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

@media screen and (max-width : 768px){
    .galerie-text h1{
        font-size : 1rem;
    }

    #galerie{
        width : 100%;
    }
}