/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

*{
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  background: #fff;
}

h1{
  font-weight: 900;
  color: #1a6357;
  font-size: 44px;
}

h1:before{
  content: "Semaine des langues 2025 :";
  text-align: center;
  display: block;
  font-weight: 700;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}


.svg-container {
  position: absolute;
  width: 100vw;
  height: 100vh;
  height: calc(100vh - 50px);
  top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

.main {
  z-index: 100;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#main1{
  /* background: red; */
  max-width: 1000px;
  margin: 70px auto;
  display: grid;
  grid-template-columns: 40% 60%;
  grid-auto-rows: 1fr;
  grid-gap: 10px;
  position: relative;
}

#main1 .foret-left{
padding: 10px;
}

#main1 .foret-left img{
width: 100%;
display: block;
animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
  }
  20% {
    transform: translateY(-15px) translateX(10px) scale(1.03) rotate(-1.5deg);
  }
  40% {
    transform: translateY(-10px) translateX(20px) scale(1.02) rotate(1.5deg);
  }
  60% {
    transform: translateY(5px) translateX(10px) scale(1.03) rotate(0deg);
  }
  80% {
    transform: translateY(-10px) translateX(-5px) scale(1.01) rotate(-1deg);
  }
  100% {
    transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
  }
}

#main1 .foret-right{
 padding: 10px;
line-height: 1.2em;
font-size: 1em;

}

.foret-right h2{
  font-size: 28px;
  font-weight: 900;
  line-height: 30px;
  color: #1a6357;
  padding: 0 0 25px 0;
}

.foret-right p:first-of-type, .foret-right p:last-of-type{
  font-weight: 700;
}

.foret-right p{
  padding: 6px 0;
}


.foret-right p{
  padding: 6px 0;
}



.scroll-down, .scroll-down2{
  color: #093f35;
  font-size: 50px;
  cursor: pointer;
  /* text-shadow: 0 0 2px #333; */
  position: absolute;
  display: block;
  width: 50px;
  height: 50px;
  left: calc(50% - 25px);
  bottom: 15px;
  z-index: 1;
  animation: bounce .9s infinite;
}

.scroll-down2{
  bottom: -40px;
}

@keyframes bounce {
        0%, 100% {
            transform: translateY(0); /* Start and end position */
        }
        50% {
            transform: translateY(-8px); /* Peak position */
        }
    }

  #main2{
    height: 100vh;
    width: 100%;
    min-height: 500px;
position: relative;
    background: url('img/bg-foret-echantee.jpg') no-repeat center center;
    background-size: cover;
/*     display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    grid-auto-rows: 1fr;
    grid-gap: 10px; */
    
  }

#main2 h3{
  position: absolute;
  width: 100%;
  padding: 0px 30px;
  top: 20px;
font-size: 20px;
color: #fff;
font-weight: 700;
    text-align: center;
    text-shadow: 0 0 2px #222;
}

#container-arbres{
  position: relative;
    height: 100vh;
    width: 100%;
    padding: 0 15px;
/*     max-width: 1400px;
    min-height: 500px;
    margin: 0 auto; */
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-auto-rows: 1fr;
grid-gap: 15px;
}



#main2 .gallery{
align-self: end;
transform: translateY(-10px);

}


#main2 #arbre1:before{

display: block;
content: "Albi";
font-size: 32px;
position: relative;
top: -15px;
color: #fff;
font-weight: 900;
    text-align: center;
    text-shadow: 0 0 3px #222;
}


#main2 #arbre2:before{

display: block;
content: "Croix-de-Pierre";
font-size: 32px;
position: relative;
top: -15px;
color: #fff;
font-weight: 900;
    text-align: center;
    text-shadow: 0 0 3px #222;
}


#main2 #arbre3:before{

display: block;
content: "Saint-Agne";
font-size: 32px;
position: relative;
top: -15px;
color: #fff;
font-weight: 900;
    text-align: center;
    text-shadow: 0 0 3px #222;
}


#main2 #arbre4:before{

display: block;
content: "Tarbes";
font-size: 32px;
position: relative;
top: -15px;
color: #fff;
font-weight: 900;
    text-align: center;
    text-shadow: 0 0 3px #222;
}


  #main2 img{
    width: 100%;
     /* filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); */

  }

  .gallery img {
      filter: drop-shadow(0 0 25px rgba(255, 255, 200, 0.25));
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .gallery img:hover {
      transform: scale(1.03);
      filter: drop-shadow(0 0 30px rgba(255, 255, 200, 0.7));
    }

    .lightbox {
      display: none;
      position: fixed;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.75);
      justify-content: center;
      align-items: center;
      z-index: 1000;
      opacity: 0;
      inset: 0;
      transition: opacity 0.4s ease;
      pointer-events: none; /* évite les clics quand caché */
    }


.lightbox.visible {
  display: flex;
  pointer-events: auto;
}


.lightbox.fade-in {
  opacity: 1;
}


    #main2 .lightbox img {
     /*  max-width: 90%;
      max-height: 90%; */
      height: 92%;
      width: auto !important;
      
      box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }

    .lightbox.active {
      display: flex;
    }

    .close-btn {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 40px;
      color: white;
      cursor: pointer;
      z-index: 1001;
      user-select: none;
    }



/* animation drapeaux */


    .flag-banner {
      width: 100%;
      height: 50px;
      overflow: hidden;
      background-color: #f0f0f0;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1000;
    }

    .flag-track {
      display: flex;
      animation: scrollFlags 35s linear infinite;
    }

    .flag-track img {
      height: 35px;
      margin: 8px 5px;
    }

    @keyframes scrollFlags {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    /* Clone track for seamless loop */
    .flag-wrapper {
      display: flex;
      width: max-content;
    }

/* fin animation drapeaux */

/* Responsive */

@media (max-width: 800px) {

    .flag-track {
      animation: scrollFlags 15s linear infinite;
    }

    #main1{
      display: grid;
        grid-template-columns: 1fr !important;

     }


#main2 {
    height: auto;
    width: 100%;
  
}

#container-arbres{
  grid-template-columns: 1fr !important;
  height: auto;
  padding-top: 80px;
}


.gallery{
  margin-top: 80px;
}


#main2 .lightbox img {
height: auto !important;
width: 90% !important;

}

}

/* Fin responsive */
