/* ===================================
   1. VARIABLES CSS
=================================== */

:root {
    --color-primary: #db1203f5;
    --color-primary-dark: #751e01;
    --color-background: #000000;
    --color-footer: #47ADE0;
    --color-footer-alt: #c5835f;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-text: #333333;
    --color-text-light: rgba(60, 60, 60, 0.937);
    --container-width: 1200px;
    --container-medium: 900px;
    --spacing-base: 20px;
    --transition-speed: 0.3s;
    --z-index-nav: 1000;
    --z-index-dropdown: 100;
    --z-index-totop: 40;
    --z-index-logo: 10;
}


/* ===================================
   2. FONTS
=================================== */

@font-face {
    font-family: 'Montserrat';
    src: url('../webfonts/Montserrat-Regular.woff2') format('woff2'), url('../webfonts/montserrat-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'lemonmilkbold';
    src: url('../webfonts/LEMONMILK-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'lemonmilkmedium';
    src: url('../webfonts/LEMONMILK-Medium.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'lemonmilkregular';
    src: url('../webfonts/LEMONMILK-Regular') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ===================================
   3. RESET & BASE STYLES
=================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: white;
}


/* ===================================
   4. LAYOUT
=================================== */

#whole_wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #000000;
}

#main {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
}

#headpart {
    background: var(--color-background);
    z-index: 11;
}

/*===================================
    ANIMATION HOME
=====================================*/
/* Header contenant le logo */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: 10; /* Au-dessus de l'image de fond */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container du logo avec effet de fondu */
.logogliss {
    display: inline-block;
    /* filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8)); */
    /* position: relative; */
}

.logogliss img {
    max-width: 700px;
    width: 80vw;
    height: auto;
    display: block;
   
    
    /* Effet de fondu radial - le logo fond progressivement vers les bords */
    /* -webkit-mask-image: radial-gradient(
        circle, 
        rgba(0,0,0,1) 30%, 
        rgba(0,0,0,0.8) 60%, 
        rgba(0,0,0,0) 100%
    );
    mask-image: radial-gradient(
        circle, 
        rgba(0,0,0,1) 30%, 
        rgba(0,0,0,0.8) 60%, 
        rgba(0,0,0,0) 100%
    ); */
    
    /* Ombre portée optionnelle pour plus de visibilité */
    filter: drop-shadow(0 0 5px rgb(0, 0, 0));
    
    /* Animation d'apparition */
    animation: fadeInLogo 1.5s ease-out;
}

/* Animation d'apparition du logo */
@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Image de fond */
#imgdefond {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 80%;
    z-index: 1; /* Derrière le logo */
}



/* ===================================
   5. CONTAINERS
=================================== */

.container-fluid {
    width: 100%;
    padding: 0;
}

.container {
    width: var(--container-width);
    max-width: 100%;
    margin: 0 auto;
}

.cont1200 {
    width: min(var(--container-width), 100%);
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: var(--spacing-base);
    padding-inline: var(--spacing-base);
}

.cont900 {
    width: min(var(--container-medium), 100%);
    max-width: var(--container-medium);
    margin: 0 auto;
    padding-top: var(--spacing-base);
    padding-inline: var(--spacing-base);
    margin-top: 30px;
    background: #000000;
    font-family: 'Montserrat';
}

h1,
h2,
h3 {
font-family: 'lemonmilkbold';
}

h4 {
    font-family: 'Montserrat';
    font-size: 1.8rem;
}

h2.spon{
    padding-bottom: 30px;
}

.unsponsor img {
    width: 350px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.contdates {
    background: black;
    color: white;
    text-align: center;
    font-family: 'lemonmilkbold';
}

.unedate {
    padding-top: 20px;
    background: linear-gradient(to right, #04AFFD, #5c6ac7b9 30%, #ffffff 50%) no-repeat left top / 100% 2px;
}

.unesection,
.presstudio {
    padding-top: 30px;
    padding-bottom: 30px;
    background: linear-gradient(to right, #04AFFD, #5c6ac7b9 30%, #ffffff 50%) no-repeat left top / 100% 2px;

}

.imgcover {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    max-width: none;
}

.contactez {
    padding-top: 30px;
    text-align: center;
}

.contactez p {
    font-size: 1.5rem;
}

.contactez .res {
    display: inline-block;
    width: 40px;
    font-size: 2.5rem;
}

.txtcontact {
    padding-top: 10px;
    font-size: 16px;
}

.contactez a {
    color: #04AFFD;
}

iframe {
    max-width: 100% !important;
    min-height: 600px;
}

@media (min-width: 990px) {
    .unedate {
        border: solid white 3px;
        margin-top: 15px;
        margin-bottom: 15px;
        margin-inline: 50px;
        padding-top: 10px;
        background: linear-gradient(to right, #04AFFD, #5C6AC7 30%, rgba(255, 255, 255, 0.262) 50%) no-repeat left top / 100% 6px;
			
    }

    .lesdates {
        padding-top: 40px;
    }
}

.logogliss{
    position : relative;
    z-index  : 10;
    animation: titre ease 2s;
}

@keyframes titre {
    0% {
        opacity  : 0;
        transform: translateY(150px);
    }

    100% {
        opacity  : 1;
        transform: translateY(0px);
    }
}

.align_center {
    text-align: center;
}

/* ===================================
   6. MEDIA ELEMENTS
=================================== */

video,
audio,
img,
iframe {
    max-width: 100%;
    height: auto;
}

#imgdefond {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    /* margin-left: auto;
    margin-right: auto; */
    display: block;
    object-position: top center;
}


/* ===================================
   7. TYPOGRAPHY & LINKS
=================================== */

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}


/* ===================================
   8. NAVIGATION - MOBILE FIRST
=================================== */

#top_logo {
    display: none;
    max-width: 150px;
    height: auto;
    z-index: var(--z-index-logo);
}

#mainnav {
    position: fixed;
    inset: 0;
    background: #000000;
    display: none;
    opacity: 50%;
    padding: var(--spacing-base);
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color-white);
    border-radius: 7px;
    transition: opacity 1s ease;
    z-index: 100;
}

#mainnav.open {
    display: block;
    opacity: 1;
}

#mainnav ul {
    margin: 50px 0 0;
    padding: 0;
    font-size: 1em;
    text-transform: uppercase;
    color: var(--color-white);
}

#mainnav li {
    display: block;
    margin: 0 0 15px;
    font-size: 1.2rem;
    position: relative;
}

#mainnav li a {
    color: var(--color-white);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-speed) ease;
}

#mainnav li a.activ {
    color: var(--color-primary);
}

#mainnav li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) ease;
}

#mainnav li a:hover {
    color: var(--color-primary);
    background: none;
}

#mainnav li a:hover::after {
    width: 100%;
}


/* Dropdown indicators */

#mainnav li a.hasdrop i {
    margin-left: 0.25rem;
    transition: transform var(--transition-speed);
}

#mainnav li a.hasdrop[aria-expanded="true"] i {
    transform: rotate(180deg);
}


/* Dropdown menu */

#mainnav ul li ul.dropdown-menu {
    position: static;
    display: none;
    margin-top: 0;
    padding: 10px 0;
    min-width: 200px;
    text-align: center;
    color: var(--color-black);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#mainnav ul li ul.dropdown-menu a.activ {
    color: var(--color-white);
}

#mainnav ul li ul.dropdown-menu li {
    display: block;
    margin: 0;
    padding: 5px 20px;
}

#mainnav ul li ul.dropdown-menu li a {
    color: var(--color-text);
    text-decoration: none;
}

#mainnav ul li ul.dropdown-menu li a:hover {
    color: var(--color-primary);
}


/* Menu toggle buttons */

#openmenu,
#closemenu {
    color: var(--color-white);
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
}


/* ===================================
   9. NAVIGATION - DESKTOP
=================================== */

@media (min-width: 990px) {
    #top_logo {
        display: flex;
        max-width: 200px;
        height: auto;
        z-index: var(--z-index-logo);
    }

    #mainnav {
        position: static;
        width: auto;
        height: auto;
        display: block;
        opacity: 1;
        transform: none;
    }

    #mainnav ul {
        margin-top: 0;
    }

    #mainnav li {
        display: inline-block;
        margin: 0 10px;
        font-size: 1rem;
    }

    #mainnav ul li ul.dropdown-menu {
        position: absolute;
        top: 2.2rem;
        text-align: left;
        z-index: var(--z-index-dropdown);
    }
}


/* ===================================
   10. FIGURES (RESPONSIVE)
=================================== */

@media (min-width: 990px) {
    .figure {
        display: inline-block;
        width: 33%;
        padding-inline: var(--spacing-base);
    }
}


/* ===================================
   11. BACK TO TOP BUTTON
=================================== */

#totop {
    position: fixed;
    right: var(--spacing-base);
    bottom: var(--spacing-base);
    display: block;
    padding: 8px;
    font-size: 2rem;
    line-height: 1;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 6px;
    opacity: 0.4;
    z-index: var(--z-index-totop);
    transition: opacity var(--transition-speed);
    cursor: pointer;
}

#totop:hover {
    opacity: 1;
    text-decoration: none;
}


/* ===================================
   12. FOOTER
=================================== */

footer {
    margin-top: auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-black);
    color: white;
    font-size: 0.9rem;
    z-index: 11;
}

footer a {
    color: rgba(232, 229, 229, 0.8);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}