/* ================= BASE ================= */
body {
  font-family: Georgia, Times, Arial, Montserrat, sans-serif;
  margin: 0;
  padding: 0;
  background: url("Chef de cuisine.jpg") no-repeat center center fixed;
  background-size: cover;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  justify-content: center;
  display: flex;
}

.container {
    width: 65%;
    background: #fff;
    margin: 30px 0;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ================= HEADER ================= */
.header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo {
    height: 60px;
}

.home-link {
    text-decoration: none;
    color: #d35400;
    font-weight: 600;
}

.home-link:hover {
    color: #e67e22;
}

/* ================= TITRE ================= */
.page-title {
    font-size: 20px;   /* au lieu de 22px */
    font-weight: normal;
    margin-bottom: 25px;
}

/* ================= LISTE RECETTES ================= */
.recipe-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recipe-card {
    display: block;
    padding: 6px 16px;
    background: #fafafa;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.recipe-title {
    font-size: 1.05rem;   /* au lieu de 1.15rem */
    font-weight: 600;
    color: #2980b9;
    line-height: 1.15;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    body {
        font-size: 17px;
        line-height: 1.5;
    }

    .container {
        width: 92%;
        padding: 22px;
    }

    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        height: 50px;
    }

    .page-title {
        font-size: 24px;
        text-align: center;
    }

    .recipe-title {
        font-size: 1.2rem;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    body {
        font-size: 17px;
        line-height: 1.5;
    }

    .container {
        width: 92%;
        padding: 22px;
    }

    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        height: 50px;
    }

    .page-title {
        font-size: 24px;
        text-align: center;
    }

    .recipe-title {
        font-size: 1.25rem;  /* un peu plus grand pour confort tablette */
        line-height: 1.3;
    }

    .recipe-card {
        padding: 14px 16px;   /* hauteur raisonnable pour les lignes */
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16.5px;     /* base confortable sur téléphone */
        line-height: 1.55;
    }

    .container {
        width: 100%;
        padding: 20px 16px;
        border-radius: 0;
    }

    .header {
        gap: 10px;
    }

    .logo {
        height: 45px;
    }

    .page-title {
        font-size: 22px;
        line-height: 1.4;
    }

    .recipe-card {
        padding: 12px 14px;    /* compact mais lisible */
    }

    .recipe-title {
        font-size: 1.35rem;    /* titre bien lisible au doigt */
        line-height: 1.25;
    }

    .home-link {
        font-size: 16px;
    }
}


