@font-face {
    font-family: 'Glancyr'; /*a name to be used later*/
    src: url('../fonts/GlancyrVariable-VF.ttf'); /*URL to font*/
}
@font-face {
    font-family: 'Text'; /*a name to be used later*/
    src: url('../fonts/unageo.ttf'); /*URL to font*/
}

body{
    background-image: url("../images/coin-cuisine/misc034.jpg");
}

.title{
    width:85%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.main{
    background-color: aliceblue;
    margin-top:30px;
    padding:1em;
    max-width: 70%;
    border-radius:5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow:
    0 0 8px #fff,
    inset 0 0 8px #fff,
    0 0 16px #c6e2ff,
    inset 0 0 16px #c6e2ff,
    0 0 32px #c6e2ff,
    inset 0 0 32px #c6e2ff; 
}

h1{
    font-family: 'Glancyr';
    text-align: right;
}

h2{
    margin-top:30px;
    font-family: 'Glancyr';
    text-align: left;
    font-size:24px;
    font-weight: 400;
}

h3{
    font-family: 'Glancyr';
    text-align: left;
    font-size:18px;
    line-height:0.5em;
    font-weight: 400;
}

.header-img{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

p{
    margin-top:-10px;
    font-size:16px;
    font-family: 'Text';
    font-weight:420;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 2em;
}

.carte{
    display: flex; 
    flex-direction: column; 
    border-radius: 10px 10px 10px 10px;
    flex: 1 1 300px;
    max-width: 350px;
    min-width: 250px;
    margin: 0;
    box-shadow: 2px 7px 13px 0px rgba(0,0,0,0.2);
    overflow: hidden; 
    border-color: #000000;
}
.card-body{
    background: linear-gradient(to bottom, #fffcfc, #e5ffff);
    flex-grow: 1;
    padding: 24px; 
}
.card-title{
    color: #000000;
    font-weight: bold;
    font-size: 18px;
    font-family: 'Glancyr';
    margin: 0px; 
    padding: 0px; 
    text-transform: uppercase;
}
.card-text{
    line-height: 1.4;
    margin: 2px 0px 0px 0px; 
    font-size: 16px;
    color: #000000;
}

.tag {
    margin-top: 5px;
    font-size: 14px;
    font-weight:600;
    padding: 8px 10px; 
    display: inline-block; 
    border-radius: 4px;
}

.comfort-food {
    background-color: #ffcebf;
    color: #3a0e00;
}

.viande {
    background-color: #f8d7c3;
    color: #4a1c00;
}

.veggie {
    background-color: #d0f0c0;
    color: #205720;
}

.vegan {
    background-color: #c4f2d6;
    color: #155943;
}

.ptitdej {
    background-color: #fff5c4;
    color: #7a5200;
}

.dessert {
    background-color: #fcd4e3;
    color: #66002f;
}

.apero {
    background-color: #ffe9b5;
    color: #6a4100;
}

.street {
    background-color: #ffd7a8;
    color: #4c2500;
}

.soupe {
    background-color: #f5e1be;
    color: #5e3a00;
}

.boisson {
    background-color: #e6d7ff;
    color: #3b0066;
}

/* CSS POUR LES RECETTES INDIVIDUELLES */

.titre-recette{
    text-align:center;
    font-size:28px;
    font-weight:900;
    margin-bottom:2px;
}
.image-recette{    
    display: block;
    margin-left: auto;
    margin-right: auto;
    width:600px;
}
.image-recette-carte{    
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

.ingredients, .preparation {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.info {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.info-item {
    text-align: center;
    flex: 1;
    padding: 10px;
    background-color: #040046;
    border-radius: 5px;
    margin: 0 5px;
}

.info-item p {
    margin: 5px 0;
    color: #e2efff;
}

.info-label {
    font-weight: bold;
    font-size: 0.9em;
}

li{
    font-size:16px;
    font-family: 'Text';
    font-weight:420;
}


/* RESPONSIVE */

@media (max-width: 1200px) {
    .carte {
        width: 48%;
    }
    .main{
    background-color: aliceblue;
    margin-top:30px;
    padding:1em;
    max-width: 90%;
    border-radius:5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow:
    0 0 8px #682b2b,
    inset 0 0 8px #fff,
    0 0 16px #c6e2ff,
    inset 0 0 16px #c6e2ff,
    0 0 32px #c6e2ff,
    inset 0 0 32px #c6e2ff; 
    }   
    h2{
    margin-top:30px;
    font-family: 'Glancyr';
    text-align: left;
    font-size:34px;
    font-weight: 400;
}
p{
    font-size:larger;
}
}

@media (max-width: 768px) {
    .main {
        width: 95%;
        padding: 0.8em;
    }
    
    h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .carte {
        width: 100%;
    }
    
    .info-item {
        flex-basis: calc(50% - 10px);
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .title {
        width: 95%;
    }
    
    .main {
        width: 100%;
        border-radius: 0;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .titre-recette {
        font-size: 24px;
    }
    
    .info {
        flex-direction: column;
    }
    
    .info-item {
        margin-bottom: 10px;
        flex-basis: 100%;
    }
    
    .tag {
        font-size: 12px;
        padding: 6px 8px;
    }
}