* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}


/* Scrool animation*/

html{scroll-behavior: smooth;}


header {
    background: linear-gradient(135deg, #005C97 0%, #363795 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.LogoMECImage{
    width: 160px;
    height: 50px;
    vertical-align: top;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Section principale */
main {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #005C97 0%, #363795 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #363636;
    max-width: 600px;
    margin: 0 auto;
}

/* Menu sections */
.Section-page {
    margin-bottom: 4rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.menu-section:hover {
    transform: translateY(-5px);
}

.section-header {
    background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
    padding: 2rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* Menu sections */
.menu-section {
    margin-bottom: 4rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.menu-section:hover {
    transform: translateY(-5px);
}

.section-header {
    background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
    padding: 2rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.menu-item {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
}

.menu-item:hover {
    transform: scale(1.02);
    border-color: #ffa751;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.menu-item img {
    width: 530px;
    height: 90%;
    object-fit: cover;
    object-position: left center;
    transition: transform 0.3s ease;
    transform: translateX(60px);
}

.menu-item:hover img {
    transform: scale(1.2);
    transform: translateX(60px);
}

.menu-content {
    padding: 1.5rem;
    flex: 1;
}

.menu-content-liste {
    color: #363636;
    line-height: 2.5;
}

#fente_photo
{
    transition: transform 0.3s ease;
    transform: translateX(-5px);
}

iframe{
    width: 60%;
    height: 530px;
}

p {
    text-align: center;
}

#img_contact
{
    transform: translateX(10px);
}




.Image_container
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

}

.Image_container .column
{
    display: flex;
    flex-direction: column;
    width: 32.5%;
}

.Image_container .column img
{
    width: 100%;
    padding-bottom: 5px;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;

}
.Gallerie_containeur
{
    margin-bottom: 15%;
}

.img_logo_lien img
{
    width: 50%;
    height: 30%;
}
.img_logo_lien img
{
    width: 60%;
    height: 40%;
}
#federation_escrime{
    width: 25%;
    height: 25%;
}

.menu-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
}
/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}


.imageReveal {
    animation: imageReveal both;
    animation-timeline: view(50% 20%);
    padding: 20px;
}

@keyframes imageReveal{
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }

    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Responsive */
@media (max-width: 954px) {


    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(102, 126, 234, 0.95);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        backdrop-filter: blur(10px);
    }

    nav ul.active {
        display: flex;
    }

    .header-content {
        padding: 0 1rem;
    }


    iframe{
        display: none;
    }




}


@media (max-width: 964px) {
    img:not(#columne_apparition_telephone img) {
        display: none;
    }

    .Image_container {
        display: block;

    }
    .Image_container .column {
        width: 100%;
        display: block;
        margin-bottom: 10px;

    }
    #columne_apparition_telephone img{
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 10px;
    }



}