
html{
    scroll-padding-top: 40%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Comfortaa', sans-serif;
  }

h1{
     color : red;
}

h2{
    color : #164194;
    text-align : center;
    line-height : 1.1;
    text-transform : uppercase;
}


header{
    max-width : 1200px;
    margin: auto;
}

.bande-fleur {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 100vh;
  background-image: url("../res/bandefleur.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  pointer-events: none;
  z-index: -1;
}

a{
    text-decoration: none;
}

#ban{
    position : relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    background-color: white;
}
    
.logo {
    grid-column: 2;
    justify-self: center;
}
       
    .logo img{
        padding-top : 1rem;
        padding-bottom : 1rem;
        max-width: 200px;
        transition : 0.2s;
    }
        .logo img:hover {
            scale: 1.1;
            transition : 0.2s;
        }

.insta-ban {
    grid-column: 3;
    justify-self: end;
    padding-right: 1rem;
}
#menu{
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    height : 50px;
    margin-bottom : 3rem;
}     
.icone {
    width: 100px;
    vertical-align: middle;
    transition: 0.2s;
}
    .icone:hover{
        scale : 1.2;
        transition: 0.2s;
    }
nav {
    background-image: url("../res/accolade.png");
    background-size: contain;
    background-repeat: no-repeat;
    padding: 0rem;
    background-position-y: bottom;     
}

    nav ul {
        list-style: none;
        display: flex;
        gap: 0rem; 
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    nav li {
        width : 200px;
        height : 100px;
        display: flex;                 
        align-items: center;          
        justify-content: center;  
    }
        nav li a{
            text-decoration: none;
            text-transform: uppercase;
            color :#164194;
            display: inline-block;
            position: relative;
            margin : auto;
            padding: 0.2rem 1rem;
            font-family: 'Comfortaa', sans-serif;
            font-weight: bold;              
        }
            nav li:hover{
                background-image: url(../res/cover_button.webp);
                background-size: contain;
                background-position: center;
                background-repeat: no-repeat;        
            }
                nav li:hover a{
                    font-size: 1.2rem;
                    transition : 0.5s;    
                }

main {
    max-width: 1200px;
    margin : auto;
}

#accueil {
    display : flex;
    flex-direction: column;
    position : relative;
    background-color: bisque;
}

.pile-cartes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  margin: auto;
  padding: 2rem 0;
  max-width: 1050px; 
}

.pile-cartes img {
  width: min(350px, 90vw);       
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.pile-cartes img:hover{
    transform: scale(1.3);
   z-index: 10;
}

.pile-cartes img:active{
  transform: scale(2);
  z-index: 10;
}

#carte-guide.pile-cards {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 10px;          
  padding-top: 3rem;
  max-width: 1000px;
  margin: 0 auto; 
}

#carte-guide .card {
  width: 280px;
  height: 450px;
  background: #FAFAF0;             
  padding: 10px;                 
  border-radius: 22px;           
  box-sizing: border-box;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

#carte-guide .card + .card {
  margin-left: -40px;
}

#carte-guide .card:hover {
  transform: translateY(-18px);
  z-index: 110;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

#carte-guide.pile-cards:hover .card {
  z-index: 1;
}

#carte-guide.pile-cards:hover .card:hover {
  z-index: 50;
}

#carte-guide .card-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    border-radius: 12px;
    height : 95px;
    background: white;
    flex: 0 0 auto;
}

#carte-guide .card-linkwrap .card-text{
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

#carte-guide .card-text h2 {
  margin: 0;
  font-size: 1.5rem;
  text-align :center;
  line-height: 1.2;
  color: #164194;
  text-transform: uppercase;
}

#carte-guide .card-img {
  width: 100%;
  height: 100%;
  object-position : center bottom;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.card-link .card-img{
    object-fit : cover;
    height: 100%;
}

#carte-guide .card-linkwrap{
  background: white;
  padding: 10px;
  border-radius: 22px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#carte-guide .card-linkwrap .card-media{
  flex: 1;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

#carte-guide .card-linkwrap .card-media > video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-frame {
  position: absolute;
  inset: 0;
  background-image: url("../res/card-frame.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 5;
  pointer-events: none;
}

#carte-guide .card:hover .card-frame{
    background-image: url("../res/card-frame.webp");
}

#carte-guide .card:nth-child(3n+1) { 
    transform: rotate(-3.2deg); 
}
#carte-guide .card:nth-child(3n+2) { 
    transform: rotate(1.8deg); 
}
#carte-guide .card:nth-child(3n+3) { 
    transform: rotate(-0.4deg); 
}
#carte-guide .card:hover { 
    transform: translateY(-40px) rotate(10deg); 
}



#contenor{
    max-width : 1000px;
    margin: 1rem auto;   
}

.cadre-bloc{
    display: flex;
    flex-wrap: wrap;
    max-width : 1000px;
    margin: 1rem auto;
    padding: 1rem;
    gap: 0;
    justify-content: center;
    align-items: center;
}

.bloc-prez{
    max-width : 100%;
    overflow: hidden;
    margin: 1rem auto;
    transform : rotate(-1deg);
    box-shadow: 0 15px 24px rgba(0,0,0,0.15);
    padding : 2rem;
    border-radius : 1rem;
    justify-content: center;
    background-image: url("../res/fond-dico.png");
     transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .cadre-bloc > .bloc-prez{
        max-width : 45%;
    }

    .bloc-prez h1{
        color : #164194;
        text-align : center;
        font-size : 2.5rem;
        line-height : 1.4;
        text-transform : uppercase;
    }

    .bloc-prez h2{
        color : #164194;
        text-align : center;
        font-size : 1.8rem;
        line-height : 1.1;
        text-transform : uppercase;
    }

    .bloc-prez p{
        text-align: center;
        font-size: 1.2rem;
    }

    .bloc-prez p b{
        color: #164194;
    }
    .bloc-prez:hover{
        background-image: url("../res/fond-dico.webp");
        transform :scale(1.05);
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

.bloc-paragraphe {
    width : 200px;
    height : 300px;
    padding : 1rem;
    border-radius : 1rem;
    background-image: url("../res/fond-dico.png");
    box-shadow: 0 15px 24px rgba(0,0,0,0.15);   
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .bloc-paragraphe:hover{
        transform: scale(1.1);
        background-image: url(../res/fond-dico.webp);
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .bloc-paragraphe p{
        text-align : center;
        margin : 0;
    }

    .bloc-paragraphe h2{
        color : #164194;
        text-align : center;
        line-height: 1;
        text-transform : uppercase;
    }

    .bloc-paragraphe p b{
        color : #164194;
    }

.bloc-res{
    position: relative;   
    width: 300px;
    height: auto;
    z-index :1;
    margin-left : -10px;
    box-shadow: 0 15px 24px rgba(0.20,0,0,0.15);
    border-radius: 1rem;
    padding: 1rem;
    background-image: url("../res/fond-dico.png");
    transition: transform 0.4s ease, box-shadow 0.25s ease;
    transform: translateY(0);
    transform: rotate(-3deg);
}

.bloc-res2{
    position: relative;   
    width: 400px;
    height: auto;
    z-index :1;
    margin-top : 1rem;
    margin-left : -10px;
    box-shadow: 0 15px 24px rgba(0.20,0,0,0.15);
    border-radius: 1rem;
    padding: 1rem;
    justify-content: center;
    background-image: url("../res/fond-dico.png");
    transition: transform 0.4s ease, box-shadow 0.25s ease;
    transform: translateY(0);
    transform: rotate(-2deg);
}

    .bloc-res:hover{
        background-image: url("../res/fond-dico.webp");
        transition: transform 0.4s ease, box-shadow 0.25s ease;
        z-index : 10;
        transform: rotate(1deg) scale(1.1);
    }

    .bloc-res2:hover{
        background-image: url("../res/fond-dico.webp");
        transition: transform 0.4s ease, box-shadow 0.25s ease;
        z-index : 10;
        transform: rotate(1deg) scale(1.1);
    }
          
    .bloc-res h2{
        border-radius: 0.5rem;
    }

    .bloc-res img{  
        position: relative;
        z-index: 2;         
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 1rem;
        transition: opacity 0.4s ease;        
    }

    .bloc-res:hover img{
        opacity : 0;
        transition: opacity 0.4s ease;
    }

.text-cache {
    position: absolute;
    inset: 0;                   
    padding: 2.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    opacity : 1;        
    z-index: 1;
    pointer-events: none;               
}

    .bloc-res:hover .text-cache{
        opacity : 1;
    }

.date{
    position: absolute;
    top: -30px; 
    right : 5rem;
    z-index: 10;
    background-color: #164194; ;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 15px 24px rgba(0.20,0,0,0.15);           
}

    .date h2{
        color : white;
        line-height: 0.1rem;
    }

.bloc-video{
    position: relative;   
    width: 280px;
    height: 400px;
    z-index :1;
    box-shadow: 0 15px 24px rgba(0.20,0,0,0.15);
    border-radius: 1rem;
    padding: 0.5rem;
    background-image: url("../res/fond-dico.png");
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.25s ease;
    transform: scale(1) rotate(-2deg);  
}

    .bloc-video video{
        width : 100%;
        height : 100%;
        border-radius : 1rem;
        object-fit : cover;        
    }

    .bloc-video:hover{
        transform: scale(1.1) rotate(0deg); 
    }

#contenu{
    max-width : 1200px;
    column-width: 300px;
    column-gap: 1rem;
    padding-top: 2rem;
    column-fill: balance;
    margin: 1rem;
    }

.letter-group{
    break-inside: avoid;  
}

.bloc-text {
    width :auto;
    background-image: url("../res/fond-dico.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 1rem 3rem 2rem 3rem;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    position: relative;
    box-shadow: 0 15px 24px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin : 1rem;
    border-radius: 22px;
    justify-content : center;
    z-index : 1;
}

    .bloc-text:hover {
        transform: translateY(-0.1rem);
        background-image: url("../res/fond-dico.webp");
        background-position: center;
        background-repeat: no-repeat;
    }

    .bloc-text h2{
        color : #164194;
        text-align : center;
        line-height : 1.1;
        text-transform : uppercase;
    }

    .bloc-text p{
        text-align : center;
        line-height : 1.2;
        margin : 0;
    }

    .bloc-text p b{
        color : #164194;
    }

    .img-bloc-text{
        position :absolute;
        width : 20px;
        left : 1rem;
        top : 1rem;
    }

    .bloc-text .dico-letter{
        font-family:'Times New Roman', Times, serif;
        font-size: 4rem;
        font-weight: bold;
        color : #164194;
        text-transform : uppercase;
    }


@keyframes fontShuffle {
  0%   { font-family: "Arial", sans-serif; }
  25%  { font-family: "Georgia", serif; }
  50%  { font-family: "Courier New", monospace; }
  75%  { font-family: "Verdana", sans-serif; }
  100% { font-family: "Arial", sans-serif; }
}

    .bloc-text .dico-letter:target {
    animation: fontShuffle 0.5s steps(1) infinite; 
    }

    .bloc-text:target{
        background-image: none;
        background-color :#164194;
    }

    .bloc-text:target h2{
        color : white;
    }

    .bloc-text:target p {
        color : white;
    }

    .bloc-text:target p b {
        color : white;
    }

    .bloc-text:target a {
        color : white;
        font-weight: bold;
    }


/*bar menu dico*/
.menu-lettre-wrap{
    position: sticky;
    top: 4.5rem;
    z-index: 50;
    background: white;
    padding: 2rem 0 0 0;
    display: flex;
    justify-content: center;
}

.menu-lettre {
  display: flex;              
  flex-wrap: wrap;           
  justify-content: center;
  gap: .5rem;
  margin: 0;
  z-index: 10;
}

    .menu-lettre a{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1.2rem;
        font-weight: bold;
        text-transform: uppercase;
        color: white;
        background-image: url("../res/dicoletter.png");
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 0.6rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        transition:
            transform 0.15s ease,
            box-shadow 0.15s ease,
            background-color 0.15s ease;
    }

.menu-lettre a:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    background-image: url("../res/dicoletter.webp");
    background-position: center;
    background-repeat: no-repeat;
}

.menu-lettre a:active{
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


.googlemap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 24px rgba(0,0,0,0.15);
    padding: 2rem;
    border-radius: 1rem;
    width: auto;
}

.googlemap h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.googlemap iframe {
    width: 100%;
    border: none;
    border-radius: 0.5rem;
}

/*smartphone*/
@media (max-width: 1650px){
     .bande-fleur{
        display : none; 
    }
}
@media (max-width: 1200px) {

    header{
        background-color : white;
    }

    main{
        max-width : auto;
    }
    #menu{
        height : 90px;
        width : auto;
    }
    
}
@media (max-width: 1000px) {
   
    
        .cadre-bloc > .bloc-prez{
            max-width : 100%;
        }
        .text_presentation h2 {
            font-size : 1.1rem;
        }
        .text_presentation p {
            font-size : 0.8rem;
        }
        .text_presentation .detail{
            font-size : 0.8rem;
        }
        #carte-guide .card + .card {
            margin-left: 0px; 
        }
        #carte-guide .card:nth-child(3n+1) { transform: rotate(0deg); }
        #carte-guide .card:nth-child(3n+2) { transform: rotate(0deg); }
        #carte-guide .card:nth-child(3n+3) { transform: rotate(0deg); }
        #carte-guide .card:hover { transform: translateY(-40px) rotate(0deg); }
}