:root{
  --orange:#ff9f1c;
  --red:#e63946;
  --red:#eb3223;
  --white:#ffffff;
  --dark:#1d1d1d;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: "Arial", sans-serif;
}

body{
  background:var(--orange);
  color:var(--white);
}

/* HEADER */
header{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  position:relative;
  padding:40px;
}

a{
  color:inherit;
}

h1{
  font-size:4rem;
  letter-spacing:2px;
  line-height:1;
}

h1 span{
  display:block;
  font-size:3rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-title{
  max-height: 40vh;
}

.date{
  margin-top:20px;
  font-size:1.5rem;
  color:var(--red);
  font-weight:bold;
}

.location{
  margin-top:10px;
  font-size:1.1rem;
}

/* NAV */
nav{
  position:fixed;
  top:0;
  width:100%;
  background:rgba(255,159,28,0.95);
  display:flex;
  justify-content:center;
  gap:20px;
  padding:15px;
  z-index:1000;
}

nav a{
  color:var(--white);
  text-decoration:none;
  font-weight:bold;
  transition:0.3s;
  font-weight: 100;
  text-transform: uppercase;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

nav a:hover{
  color:var(--red);
}

/* SECTIONS */
section{
  padding:80px 20px;
  max-width:1100px;
  margin:auto;
}

.section-title{
  font-size:2.5rem;
  margin-bottom:40px;
  text-align:center;
  color: var(--red);
}

#programme .section-title{
  color: var(--white);
}

/* PROGRAMME */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
}

.card{
  background:rgba(255,255,255,0.15);
  padding:20px;
  border-left:5px solid var(--red);
  backdrop-filter: blur(5px);
}

.card h3{
  margin-bottom:10px;
  color:var(--white);
}

.tag{
  display:inline-block;
  background:var(--red);
  padding:3px 8px;
  font-size:0.8rem;
  margin-bottom:10px;
}

.time{
  margin-top:  10px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 800;
  font-style: italic;
}

.tarif-info{
  margin-top:  10px;
  font-weight: 200;
  font-style: italic;
  font-size: .8em;
}

/* INFO */
.info{
  text-align:center;
  font-size:1.2rem;
  line-height:1.8;
}

/* CONTACT */
form{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:500px;
  margin:auto;
}

input, textarea, select{
  padding:10px;
  border:none;
  border-radius:5px;
}

#eventSelect{
  background-color: white;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

button{
  padding:12px;
  background:var(--red);
  border:none;
  color:white;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
}

button:hover{
  background:#c1121f;
}

/* FOOTER */
footer{
  text-align:center;
  padding:40px;
  font-size:0.9rem;
}

/* decorative bird */
.bird{
  position:absolute;
  bottom:20px;
  width:120px;
  height:120px;
  /*background:var(--red);
   clip-path: polygon(0% 60%, 30% 40%, 60% 0%, 100% 40%, 70% 60%, 100% 80%, 60% 100%, 30% 60%); */
  opacity:0.8;
}

@media (max-width: 768px) {
  .bird {
    width: 100px;
    height: 100px;
    bottom: 10px;
  }
}

/* MAP */
.map iframe{
  width:100%;
  height:500px;
  border:none;
  margin-top: 2rem;
}

/* SOCIALS */
.socials {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: 0.2s;
}

.social-link:hover {
  opacity: 0.7;
}

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}


/* PARTENAIRES */
#partenaires {
  padding: 40px 20px;
  text-align: center;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logos img {
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  opacity: 0.8;
  transition: 0.2s;
}

.logos img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* OISEAUX */
header {
  position: relative;
  overflow: hidden;
}

/* oiseau */
.oiseau {
  position: absolute;

  top: 40px;
  left: -120px;

  width: 300px;
  height: auto;

  animation: fly 18s linear infinite;
  pointer-events: none;

  will-change: transform;
  opacity: 0.95;
}

/* animation de vol */
@keyframes fly {

  0% {
    transform:
      translateX(0)
      translateY(0)
      rotate(-8deg);
  }

  20% {
    transform:
      translateX(25vw)
      translateY(25vh)
      rotate(5deg);
  }

  40% {
    transform:
      translateX(50vw)
      translateY(40px)
      rotate(-4deg);
  }

  60% {
    transform:
      translateX(75vw)
      translateY(5vh)
      rotate(6deg);
  }

  100% {
    transform:
      translateX(120vw)
      translateY(30vh)
      rotate(-8deg);
  }
}

@media (max-width: 768px) {

  .oiseau {
    width: 250px;
    left: -30vw;
    animation: flyMobile 14s linear infinite;
  }

  @keyframes flyMobile {
    0% {
      transform: translate(-30vw, 5vh) rotate(-6deg);
    }

    25% {
      transform: translate(20vw, 15vh) rotate(4deg);
    }

    50% {
      transform: translate(50vw, 0vh) rotate(-3deg);
    }

    75% {
      transform: translate(80vw, 10vh) rotate(5deg);
    }

    100% {
      transform: translate(140vw, 5vh) rotate(-6deg);
    }
  }
}

/* GALLERY */
/* section */
#galerie {
  padding: 80px 20px;
  padding-right: 0;
  max-width: 100vw;
}

/* conteneur scroll horizontal */
.gallery-scroll {
  display: flex;
  gap: 20px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  padding-bottom: 10px;
}

/* scrollbar discrète */
.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 999px;
}

/* images */
.gallery-scroll img {
  flex: 0 0 auto;

  width: auto;
  max-width: calc(100% - calc(20px));

  max-height: 90vh;
  object-fit: contain;


  scroll-snap-align: start;

  transition: transform .3s ease;
}

/* hover */
.gallery-scroll img:hover {
  transform: scale(1.02);
}

/* SPINNER */

#submitBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* spinner caché par défaut */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

/* animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* état loading */
#submitBtn.loading .spinner {
  display: inline-block;
}

#submitBtn.loading .btn-text {
  opacity: 0.7;
}


/* menu */

/* bouton burger */
.burger {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;

  font-size: 28px;
  background: none;
  border: none;

  z-index: 2000;
  cursor: pointer;
}

/* nav desktop */
#mainNav {
  display: flex;
  gap: 20px;
}

/* MOBILE */
@media (max-width: 768px) {
  

  .burger {
    display: block;
    padding:0px;
  }

  #mainNav {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: var(--orange);

    transform: translateY(-100%);
    transition: transform 0.4s ease;

    z-index: 1500;
  }

  #mainNav.open {
    transform: translateY(0);
  }

  #mainNav a {
    font-size: 22px;
    padding: 10px;
  }
}

/* PROGRAMME JOUR */

.programme-jour {
  margin-bottom: 80px;
}

.programme-jour h2 {
  margin-bottom: 30px;
  color: #fff;
  font-size: 2rem;
}

.programme-jour .grid{
  grid-template-columns:  1fr;
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 25px;
}

.programme-item {
  background: rgba(255,255,255,.15);
  padding: 30px;
  border-left: 6px solid #e6332a;
}

.programme-item .cat {
  display: inline-block;
  padding: 6px 12px;
  background: #e6332a;
  color: #fff;
  font-size: .9rem;
  margin-bottom: 20px;
}

.programme-item h3 {
  margin: 0 0 10px;
}

.programme-item p {
  margin: 0 0 20px;
}

.horaire {
  color: var(--red);
  font-weight: 700;
  font-style: italic;
}

.programme-tabs{
  display:flex;
  gap:1rem;
  margin-bottom:2rem;
  border-bottom: solid 1px white;
  padding-bottom: 1rem;
}

.tab-btn{
  cursor:pointer;
  border:none;
  padding:12px 24px;
  font-size:1rem;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: 200;
  text-transform: uppercase;
  opacity: .7;
}

.tab-btn.active{
  opacity: 1;
}

.tab-content{
  display:none;
}

.tab-content.active{
  display:grid;
}

/* TARIFS */
.infos-tarifs{
  text-align:center;
  font-size:1.2rem;
  line-height:1.8;
}

