:root {
    --primary-color: #db1203f5;
    --primary-color-dark: #7a2103;
}

/* ===================================
   1. FONT DEFINITIONS
=================================== */
@font-face {
    font-family: 'heavitas';
    src: url('../webfonts/heavitas.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'headingnow';
    src: url('../webfonts/headingnow.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@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-face {
    font-family: 'Montserrat';
    src: url('../webfonts/montserrat-bold.woff2') format('woff2'),
        url('../webfonts/montserrat-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* ===================================
   2. GLOBAL STYLES
=================================== */
html {
    scroll-behavior: smooth;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    flex: 1 0 auto; /* Le contenu principal prendra tout l'espace disponible */
  }

.lys {
    font-family: 'headingnow', sans-serif;
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.musiques {
    font-family: 'heavitas', sans-serif;
    font-size: 4rem;
}

@media (max-width: 768px) {
    .musiques {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .musiques {
        font-size: 2.5rem;
    }
}

media,
audio,
img {
    max-width: 100% !important;
}

@media (min-width : 768px) {
    .figure {
        display: inline;
        width: 33%;
        padding-inline: 20px;
    }
}

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

.container {
    width: 1200px;
    max-width: 100%;
}

.cont1200 {
    width: min(1200px, 100%);
    max-width: 1200px !important;
    margin: 0 auto;
    padding-top: 20px;
    padding-inline: 20px;
}

.cont900 {
    width: min(900px, 100%);
    max-width: 900px !important;
    margin: 0 auto;
    padding-top: 20px;
    padding-inline: 20px;
}

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

iframe {
    max-width: 100% !important;
}

a {
    color: #db1203f5;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #751e01;
    background: none;
    text-decoration: underline;
}

/* ===================================
   3. NAVIGATION STYLES
=================================== */

#top_logo {
    max-width: 100px;
    height: auto;
    z-index: 10;
}

#mainnav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .9);
    z-index: 1000;
    text-align: center;
    display: none;
    opacity: 0;
    transition: opacity 1s ease;
    text-transform: uppercase;
    font-weight: bold;
}

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

#mainnav ul {
    margin: 0;
    margin-top: 50px;
    text-transform: uppercase;
    font-size: 1em;
    background: white;
}

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

#mainnav li a {
    color: #000;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

#mainnav li a.activ {
    color: #db1203f5
}

#mainnav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #db1203f5;
    transition: width 0.3s ease;
}

#mainnav li a.hasdrop i {
    margin-left: .25rem;
    transition: transform .3s;
}

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

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

#mainnav li a:hover {
    color: #db1203f5;
    background: none;
}

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

#mainnav ul li ul.dropdown-menu a.activ {
    color: #fff;
}

@media (min-width: 1200px) {
    #mainnav ul {
        margin-top: 0;
        padding: 0;
    }

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

#mainnav ul li ul.dropdown-menu li {
    display: block;
    padding: 5px 20px;
    margin: 0;
    /* font-size: 1.2rem; */
}

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

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

#openmenu,
#closemenu {
    text-decoration: none;
    color: #000;
    font-size: 1.2rem;
}

@media (min-width: 1200px) {
    #mainnav {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        display: block;
        opacity: 1;
    }

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

/* ===================================
   4. HEADER STYLES
=================================== */

header {
    background: url(../img/communaute-reseau.jpg) no-repeat 50% 50%;
    background-size: cover;
    background-attachment: fixed;
    height: calc(100vh - 100px);
    margin: 0 0 40px 0;
    padding: 0 0 10% 10%;
    position: relative;
    width: 100%;
    transform: translateZ(0);
    will-change: transform;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

header h1 {
    font-size: 3rem;
    color: #db1203f5;
    position: relative;
    z-index: 2;
    animation: titre ease 2s;
}

/* ===================================
   SURHEADER STYLES
=================================== */

#surheader {
    background-color: #B66337;
    color: #FFF;
    font-size: 0.86rem;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(0);
    transition: background-color 0.3s ease;
}

#surheader ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

#surheader li {
    margin-right: 1rem;
}

#surheader .topsoc li {
    margin-left: 0.5rem;
}

#surheader a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

#surheader a:hover {
    opacity: 0.8;
    text-decoration: none
}

#totop {
    display: block;
    padding: 8px;
    font-size: 2rem;
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #000;
    color: rgb(255, 255, 255) !important;
    z-index: 40;
    line-height: 1 !important;
    border-radius: 6px;
    transition: opacity .3s;
    opacity: .4;
}

#totop:hover {
    opacity: 1;
}

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

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   5. FOOTER STYLES
=================================== */


footer {
    background-color: #B66337;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.surfoot {
    display: block;
    background: #973500;
    color: white;
    /* height          : 50px; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    /* padding-left    : 100px; */
}

.surfootnav {
    display: flex;
    background: #7a2103;
    color: white;
}

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

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

footer .bigfoot {
    background-color: #c5835f;
    color: #000;

}

/* videos */
.videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.unevideo {
    width: 100%;
    aspect-ratio: 16/9;
}

.unevideo iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}

/* dates */

.imgdate {
    width: 220px;
    object-fit: contain;
}

.pdate {
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
    border-bottom: #b10f04f5 solid 1px;
}

.plieu {
    text-transform: uppercase;
    text-decoration: underline;
}

.gpsbutton {
    display: block;
    text-align: center;
    text-decoration: bold;
    background: #32a421;
    border: black 1px solid;
    color: #ffffff;
    margin-bottom: 10px;
    border-radius: 3px;
    width: 30%;
    margin-inline: auto;
    padding-block: 5px;
}

.vid_home .gpsbutton,
.dates_home .gpsbutton,
.avis .gpsbutton {
    width: 70%;
    margin-inline: auto;
    margin-top: 15px;
}

.gpsbutton:hover {
    background: rgb(12, 255, 53);
    color: #000;
    text-decoration: none !important;
}

.gpsbutton a:hover {
    text-decoration: none;
}

@media (min-width: 768px) {
    .unedate {
        display: flex;
        margin-block: 20px;
        background: #e8e8e8;
    }

    .dateinfos {
        padding-inline: 30px;
        padding-top: 20px;
        width: 100%;
    }
}

.row_dates_home {
    display: flex;
}

.unedatehome {
    width: 33.3%;
    padding-inline: 12px;
}

.imgdatehome {
    width: 100%;
}

.vid_home {
    padding-block: 40px;
    margin-inline: auto;
}

.dates_home {
    padding-block: 40px;
    padding-inline: auto;
}

.dates_home h1,
.vid_home h1,
.avis h1 {
    text-align: center;
    padding-bottom: 20px;
}

/* ===================================
   6. FORMS
=================================== */

#form_wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

input,
textarea {
    font: 1em sans-serif;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #999;
    padding: 10px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    background-color: #f8f8f8;
}

input:focus,
textarea:focus {
    border-color: #db1203f5;
    box-shadow: 0 4px 6px rgba(251, 67, 10, 0.1);
    outline: none;
    background-color: #fff;
}

button,
input[type="submit"] {
    background-color: #db1203f5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background-color: #7a2103;
}

.achatcd {
    text-align: center;
    padding-top: 40px;
}

.imagecd,
.imagearticle {
    width: 400px;
    max-width: 100%;
}

#paypal_form {
    width: 600px;
    margin-inline: auto;
    max-width: 100%;
}

.lesaudios {
    display: flex;
    flex-wrap: wrap;
}

.unaudio {
    padding: 20px;
}

@media (min-width: 768px) {
    .unaudio {
        width: 33%;
    }
}

audio::-webkit-media-controls-enclosure {
    overflow: hidden;
}

audio::-webkit-media-controls-download-button {
    display: none;
}

audio::-webkit-media-controls-rate-button {
    display: none;
}

/* ===================================
   7. MEDIA QUERIES
=================================== */
.en2cols {
    columns: 2 300px;
    column-gap: 2rem;
    margin-bottom: 40px;
}

.en3cols {
    columns: 3 300px;
    column-gap: 1rem;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    header h1 {
        font-size: 4rem;
    }
}

.tiny_wrap {
    display: grid;
    grid-template-columns: 45px 1fr 45px;
}

.tiny_butt_wrap {
    width: 45px;
    display: grid;
    place-content: center;
}

.slider-container {
    overflow: hidden;
    /* margin  : 0 50px; */
}

.review-slider {
    display: flex;
}

.review-card.tns-item {
    flex: 0 1 auto;
    background: white;
    padding: 10px;
}

.review_card_content {
    padding: 20px;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.review-card:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.review-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.stars {
    margin-bottom: 15px;
}

.star {
    font-size: 1.2rem;
}

.star.filled {
    color: #ffd700;
}

.star.empty {
    color: #e0e0e0;
}

.review-content {
    text-align: left;
    margin-bottom: 15px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.toggle-text {
    background: none;
    border: none;
    color: #2196f3;
    cursor: pointer;
    padding: 5px 0;
    font-size: 0.9rem;
    text-decoration: underline;
}

.toggle-text:hover {
    color: #1976d2;
}

.review-date {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    text-align: right;
}

.nav-button {
    background: rgb(197, 193, 193);
    border: none;
    padding: 0;
    width: 45px;
    height: 45px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1.2rem;
    margin-block: auto;
    transition: background-color 0.3s ease;
}

.nav-button[disabled] {
    opacity: 3;
    cursor: default;
}

.nav-button:not([disabled]):hover {
    background-color: #f3ce94;
}

.nav-button[disabled]:hover {
    background: rgb(197, 193, 193);
}

.gpsbutton:hover {
    background: #e67e22;
}

.hidden {
    display: none;
}