@import url(reset.css);
@import url(carousel.css);

header{
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--black-color);
    box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
    z-index: var(--z-fixed);
}

/*nav*/
.nav{
    height: var(--header-heigth);
}

.nav__logo,
.nav__burger,
.nav__close{
    color: var(--white-color);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: .8rem;
}

.nav__logo{
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    font-weight: var(--font-semi-bold);
    transition: .3s ease-in-out;
}

.nav__logo:hover{
    color: var(--hover-color-link);
}

.nav__data{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__toggle{
    position: relative;
    width: 32px;
    height: 32px;
}

.nav__burger,
.nav__close{
    position: absolute;
    color: #fff;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto;
    font-size: 1.25rem;
    cursor: pointer;
    transition: opacity .1s, transform .4s;
}

.nav__close{
    opacity: 0;
}

header .icon-reseau{
    padding-left: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .3rem;
}
header .icon-reseau i{
    color: var(--white-color);
    padding-left: .5rem;
    font-size: 2.7rem;
    transition: color .3s ease-in-out;
}
header .icon-reseau i:hover{
    color: var(--hover-color-link);
}

.footer {
    background-color: #111827;
    color: #f3f4f6;
    padding: 40px 20px;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.footer h2, .footer h3 {
    color: #4ade80;
    margin-bottom: 10px;
}

.footer-about p {
    font-size: 14px;
    color: #cbd5e1;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #f3f4f6;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #4ade80;
}
.divider {
    height: 1px;
    background-color: #4b5563;
    margin: 4px 0;
}

.social-icons a {
    font-size: 22px;
    margin-right: 12px;
    color: #f3f4f6;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #4ade80;
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter input[type="email"] {
    padding: 10px;
    border: none;
    border-radius: 8px;
    outline: none;
    background-color: #1f2937;
    color: #fff;
}

.footer-newsletter button {
    padding: 10px;
    background-color: #4ade80;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.footer-newsletter button:hover {
    background-color: #22c55e;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #94a3b8;
}
.footer-credits {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    font-size: 13px;
    color: #9ca3af;
    border-top: 1px solid #374151;
}

.footer-credits a {
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: #22c55e;
}

/*Bouton de retour en haut*/
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 10px;
    background-color: #ef2d1f;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: var(--hover-color-link);
    color: white;
    transform: scale(1.1);
}

/*Show menu*/
.show-menu{
    opacity: 1;
    top: 80px;
    pointer-events: initial;/
}

/*show icon*/
.show-icon .nav__burger{
    opacity: 0;
    transform: rotate(90deg);
}

.show-icon .nav__close{
    opacity: 1;
    transform: rotate(90deg);
}

/*mp3 player*/
.background-music{
    max-width: 400px;
    margin: auto;
    border-radius: 10px;
    background-image: url(../asset/backgroung-img.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.music-player {
    display: flex;
    gap: 5%;
    align-items: center;
    max-width: 400px;
    margin: auto;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

.playlist-zone{
    width: 100%;
}
.cover-zone{
    width: 30%;
}
.player-cover img {
    width: 60%;
    border-radius: 50%;
    height: auto;
    object-fit: cover;
}

.player-info {
    margin: 5px 0;
}

.player-info h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--hover-color-link);
}

.player-info p {
    font-size: 14px;
    color: white;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.controls button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.progress-container {
    background: white;
    height: 5px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
}

.progress {
    background: #4ade80;
    height: 100%;
    width: 0%;
    border-radius: 5px;
}

.time {
    font-size: 12px;
    color: white;
    margin-bottom: 10px;
}

.playlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.playlist li {
    padding: 4px;
    font-size: 1.6rem;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #333;
    color: white;
}

.playlist li.active {
    color: #4ade80;
}

.ri-skip-back-fill, .ri-skip-forward-fill{
    font-size: 1.6rem;
}

/* Responsive */
@media (max-width: 480px) {
    .music-player {
        padding: 15px;
    }

    .controls button {
        font-size: 22px;
    }
}


/* Styles for the Articles Section */
.articles {
    padding: 50px 20px;
    background-color: #181c24;
    text-align: center;
}

.articles h2 {
    text-align: center;
    font-size: 3rem;
    color: white;
    font-weight: 300;
}

/*Dsign trois traits*/
.triple-line-bars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 1rem auto;
    max-width: 300px;
}

.line {
    flex: 1;
    height: 2px;
    border-radius: 4px;
}

.green { background-color: #fff; }
.pink  { background-color: #4ade80; }
.blue  { background-color: #fff; }
.dark-blue  { background-color: #111827; }

.articles__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.article {
    position: relative;
    overflow: hidden;
    width: 550px;
    text-align: left;
}

.figure-article{
    width: 100%;
    height: 350px;
    overflow: hidden;
}
.article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article img:hover{
    transform: scale(1.1); /* zoom */
}

.article h3 {
    font-size: 1.7rem;
    font-family: 'Montserrat', sans-serif;
    color: white;
    margin: 15px 15px 15px 0;
}

.article p {
    font-size: 1.6rem;
    color: white;
}

.article .btn-read {
    display: inline-block;
    text-align: center;
    margin: 25px 15px 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition:  0.3s ease-in-out;
}

.article .btn-read:hover {
    transition: .3s ease-in-out;
    color: var(--hover-color-link);
}

/*À propos de Lenda*/
.about {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px 20px;
    border-radius: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', sans-serif;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e05a4f;
}

.about em{
    font-size: 1.8rem;
}
.about__container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 30px;
}

.about__text {
    flex: 1 1 50%;
    font-size: 1.7rem;
    line-height: 1.8;
    padding-top: 2rem;
}

.about__image {
    flex: 1 1 40%;
    text-align: center;
}

.about__image img {
    width: 100%;
    max-width: 400px;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.about__image img:hover {
    transform: scale(1.03);
}

.about__music {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #cdcdcf;
}

.about__music h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #e05a4f;
}

.about__music p {
    font-size: 1.7rem;
    line-height: 1.7;
}


/*Section clips youtube*/
.youtube-section {
    padding: 60px 10%;
    background-color: #181c24;
}

.youtube-section h2 {
    font-size: 3rem;
    color: white;
    padding-bottom: 5px;
    font-weight: 300;
}
.youtube-section p{
    color: white;
    padding-bottom: 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}


.video-card iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.video-title {
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}


/*Mobile*/

@media screen and (min-width: 1024px){
    :root{
        --normal-font-size: 1rem;
    }
}
@media screen and (max-width: 1118px){
    .icon-reseau{
        display: none;
    }
    .nav__menu{
        position: absolute;
        left: 0;
        top:2.5rem;
        width: 100%;
        height: calc(100vh - 3.5rem);
        overflow: auto;
        pointer-events: none;
        opacity: 0;
        transition: top .4s, opacity .3s;
    }
    .nav__menu::-webkit-scrollbar{
        width: 0;
    }
    .nav__list{
        background-color: var(--black-color);
        padding-top: 1rem;
    }
    .nav__link{
        color: var(--white-color);
        background-color: var(--black-color);
        font-weight: var(--font-semi-bold);
        padding: 1.25rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background-color .3s;
    }
    .nav__link:hover{
        background-color: var(--black-color-light);
    }
    .show-menu{
        opacity: 1;
        top: 3.5rem;
        pointer-events: initial;
    }
    .show-icon .nav__burger{
        opacity: 0;
        transform: rotate(90deg);
    }
    .show-icon .nav__close{
        opacity: 1;
        transform: rotate(90deg);
    }
    /*Dropdown*/
    .dropdown__arrow{
        font-size: 1.25rem;
        font-weight: initial;
        transition: transform .4s;
    }
    .dropdown__item{
        cursor: pointer;
    }
    .dropdown__link{
        padding: 1.25rem 1.25rem 1.25rem 2.5rem;
        color: var(--white-color);
        background-color: var(--black-color-light);
        display: flex;
        align-items: center;
        column-gap: .5rem;
        font-weight: var(--font-semi-bold);
        transition: background-color .3s;
    }
    .dropdown__link i{
        font-size: 1.25rem;
        font-weight: initial;
    }
    .dropdown__link:hover{
        background-color: var(--black-color);
    }

    .dropdown__menu{
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease-in-out;
    }
    .dropdown__item:hover .dropdown__menu{
        max-height: 1000px;
        transition: max-height .4s ease-in;
    }
    .dropdown__item:hover .dropdown__arrow{
        transform: rotate(180deg);
    }
}

/*petis écrans*/
@media screen and (max-width: 340px){
    header{
        width: 50%;
    }
    .container{
        margin-inline: 1rem;
    }

    .nav__link{
        padding-inline: 1rem;
    }
}
/*Large écrans*/
@media screen and (min-width: 1118px) {
    .container {
        margin-inline: auto;
    }

    .nav {
        height: calc(var(--header-heigth) + 2rem);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav__menu{
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        right: 10rem;
    }
    .nav__toggle {
        display: none;
    }

    .nav__list {
        height: 100%;
        display: flex;
        column-gap: 3rem;
    }

    .nav__link {
        font-size: 1.5rem;
        color: var(--white-color);
        background-color: var(--black-color);
        font-weight: 300;
        padding: 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background-color .3s;
        width: 100%; /* Ensures consistent width for hover effect */
        box-sizing: border-box; /* Includes padding in width calculation */
        transition: .3s ease-in-out;
    }

    .nav__link:hover {
        color: var(--hover-color-link);
    }

    /*Dropdown*/
    .dropdown__arrow {
        font-size: 1.25rem;
        font-weight: initial;
        transition: transform .4s;
    }
    .dropdown__item {
        cursor: pointer;
        position: relative; /* Ensure submenu is positioned relative to 'Boutique' */
    }
    .dropdown__link {
        font-size: 1.2rem;
        padding: 1.25rem 5rem 1.25rem 1.25rem;
        color: var(--white-color);
        background-color: var(--black-color-light);
        display: flex;
        align-items: center;
        column-gap: .5rem;
        font-weight: var(--font-semi-bold);
        transition: .3s ease-in-out;
    }
    .dropdown__link i {
        font-size: 1.25rem;
        font-weight: initial;
    }
    .dropdown__link:hover {
        color: var(--hover-color-link);
    }

    .dropdown__menu {
        position: absolute;
        left: 0;
        top: 100%; /* Ensures no gap between 'Boutique' and submenu */
        width: auto; /* Adjust width to fit content */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height .3s ease-in-out, opacity .3s, top .3s;
    }

    .dropdown__item:hover .dropdown__menu {
        max-height: 1000px;
        opacity: 1;
        pointer-events: initial;
        top: 100%; /* Matches the initial positioning */
    }

    .dropdown__item:hover .dropdown__arrow {
        transform: rotate(180deg);
    }
}

/* Responsive about section */
@media screen and (max-width: 768px) {
    .about__container {
        flex-direction: column;
        align-items: center;
    }
    .about__image {
        order: -1;
        width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }
    .about__image img {
        margin-top: 10px;
        max-width: 90vw;
        width: 100%;
        height: auto;
    }
    .about__text {
        width: 100%;
        padding-top: 0;
    }
}



