@font-face {
    font-family: 'BBH';
    src: url("../assets/fonts/BBHHegarty-Regular.ttf") format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url("../assets/fonts/PlayfairDisplay-VariableFont_wght.ttf") format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DMSerie';
    src: url("../assets/fonts/DMSerie.ttf") format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'BitCount';
    src: url("../assets/fonts/BitCount.ttf") format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Fjalla One';
    src: url("../assets/fonts/FjallaOne.ttf") format('truetype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}   

body {
    font-family: 'Playfair Display', Verdana, serif;
    background: url("../assets/images/ProjetFond.jpg") center/cover;
    min-height: 100vh;
}

h1 {
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-size: 3rem;
    text-shadow: 3px 10px 9px #00000066;
    color: rgb(238, 242, 182);
    font-family: 'BBH', sans-serif;

}

h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgb(177, 161, 90);
    text-shadow: 2px 4px 6px #00000066;
    font-family: 'Fjalla One', sans-serif;
    margin-top: 10px;
}

nav {
    height: 60px;
    background-color: rgba(199, 199, 199, 0.664);
    width: 100%;
    margin: 0;
    border-radius: 0 0 30px 30px;
    font-family: 'Fjalla One', sans-serif;
    font-size: larger;
}

main {
    background-color: rgba(147, 147, 147, 0.2);
    margin-top: 30px;
    margin-right: 20px;
    margin-left: 30px;
    margin-bottom: 30px;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 20px 20px 20px 20px;
    box-shadow: 0 0 15px 15px #000000;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.raccourcis {
    display: flex;
    justify-content: left;
    align-items: center;
    height: 100%;
    gap: 30px;
    margin-left: 35px;
}

.absolute-right {
    color: rgb(209,209,209);
    margin-left: auto;
    font-size: 20px;
    font-weight: bold;
    padding-right: 25px;
    align-self: center;
}

.btn {
  padding: 10px 10px;
  color: white;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.2s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(106, 106, 106, 0.8);
}

.flexbox ul {
    padding: 0;                    
    display: flex;               
    flex-wrap: wrap;              
    justify-content: space-around;
    gap: 18px;
}

.flexbox li {
    list-style: none;               
    min-height: 500px;             
    width: calc(49% - 5px);       
    display: flex;              
    flex-direction: row;           
    justify-content: space-between;
    align-items: stretch;  
    border-radius: 10px;
    overflow: hidden;           
    font-weight: bold;          
    font-size: 1.2rem;        
    cursor: help;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.flexbox li img {
    width: 250px;                
    height: 250px;                
    object-fit: contain;         
    margin-right: 10px;          
    margin-left: 10px;          
    flex-shrink: 0;           
}

.flexbox li .box-text {
    padding: 15px;                 
    text-align: left;              
    background-color: rgba(255, 255, 255, 0);
    flex: 1;                        
    font-size: 1.3rem;             
    color: #333;                
    border-radius: 5px;       
    margin-left: 10px;           
    transition: all 0.3s ease;   
    transform-origin: left center;
    font-family: 'BitCount', sans-serif;
    overflow-wrap: break-word;
    word-break: break-word;
}

.flexbox li:hover {
    background-color: #ffffff00;      
    transform: scale(1.05);        
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.9);
}

.flexbox li.box-1 {
    background-color: #ffffff00;  
}

.flexbox li.box-1 .box-text {
    background-color: #ffffff00;
    color: #ffffff00;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flexbox li.box-1:hover {
    background-color: #ffffff00;
}

.flexbox li:hover .box-text {
    transform: scale(1.08);
}

.flexbox li.box-1:hover .box-text {
    background-color: #ffffff00;
    color: #ffffff00;    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);

}

@media (max-width: 1200px) {
    .raccourcis {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-left: 20px;
        gap: 16px;
    }

    .flexbox ul {
        gap: 14px;
    }

    .flexbox li {
        width: calc(50% - 10px);
        min-height: 520px;
    }

    .flexbox li img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 18px;
    }

    .raccourcis {
        justify-content: center;
        margin-left: 0;
        gap: 12px;
    }

    .absolute-right {
        padding-right: 0;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .flexbox ul {
        gap: 16px;
    }

    .flexbox li {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
    }

    .flexbox li img {
        width: 180px;
        height: 180px;
        margin: 0 0 15px 0;
    }

    .flexbox li .box-text {
        margin-left: 0;
    }
}