/* =================================================
   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;
  color: #fff;
}

/* Overlay pour lisibilité */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

h1, h2 {
  margin: 0;
  color: #333;
}

h2 {
  font-size: 20px;
}

/* ================= HEADER ================= */

.header-pave {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  width: 100%;
}

/* Logo */
.header-logo img {
  width: 90px;
  height: auto;
  border-radius: 10px;
}

/* Contenu */
.header-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Titres */
.site-title {
  font-size: 20px;
}

.site-desc {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  max-width: 900px;
}

/* Liens / boutons */
.top-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.top-bar a {
  background: transparent; /* Fond transparent */
  color: #fff; /* Texte blanc */
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 0; /* Supprime les coins arrondis */
  font-size: 16px;
  font-weight: 600;
  transition: 0.3s;
  border-bottom: 2px solid transparent; /* Ligne invisible par défaut */
}

.top-bar a:hover {
  background: transparent; /* Pas de fond au survol */
 color: #0077ff;
  transform: translateY(-2px);
  border-bottom: 2px solid #5dade2; /* Ligne bleue au survol */
  /* Ou utilisez un soulignement classique : text-decoration: underline; */
}


/* Message mobile par défaut masqué */
.mobile-scroll {
  display: none;
  text-align: center;
  background: #e8f5e9;
  color: green;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  font-size: 14px;
}
/* =================================================
   LAYOUT PRINCIPAL
================================================= */
/* MAIN CONTAINER SANS SIDEBAR */
.main-container {
  display: grid;
  grid-template-columns: 1fr; /* tout l’espace pour le contenu */
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  padding-top: 10px;
}

/* PAVÉ CONTAINER : garde 4 pavés par rangée sur desktop */
.pave-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
}
footer {
  grid-column: 1 / -1;
  margin-top: 10px;
}
/* =================================================
   PAVÉ
================================================= */
.pave {
  background: #FAF9F6;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* =================================================
   IMAGE DU PAVÉ (PLEIN FORMAT)
================================================= */
.pave-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.pave-overlay {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.pave-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* pour le titre de cate */
.pave-title-top {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px #000;
    padding: 2px 6px;
    border-radius: 3px;
    text-align: center;
    z-index: 5;
    white-space: nowrap; /* tient sur une seule ligne */
}

.pave-title-top.no-bg {
    display: inline-block;
    box-sizing: border-box;

    background: #ED9B2F;
    padding: 3px 8px;

    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;

    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;

    border-radius: 3px;
}

.pave-title-top.no-bg:hover {
    text-decoration: underline;   /* effet hover simple et stable */
}


.pave-title-top a {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.pave-title-top.no-bg:hover {
    color: #fff;         /* orange plus foncé au hover */
    text-shadow: 1px 1px 2px #000;
}
.pave-title-top.no-bg .fleche {
    color: #3498db;         /* flèche bleue */
    margin-right: 4px;
}


/* =================================================
   TEXTE OVERLAY
================================================= */
.pave-overlay-text {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px #000000;
}

/* =================================================
   LIEN SOUS IMAGE
================================================= */
.pave-link-below {
  padding: 8px 0;
  text-align: center;
}

.pave-link-below a {
  font-weight: 600;
  color: #154360;
  text-decoration: underline;
  transition: color 0.25s ease, transform 0.25s ease;
}

.pave-link-below a:hover {
  color: #d35400;           /* couleur hover */
  transform: translateY(-1px);
}


/* MAIN CONTAINER SANS SIDEBAR */
.main-container {
  display: grid;
  grid-template-columns: 1fr; /* tout l’espace pour le contenu */
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  padding-top: 10px;
}

/* PAVÉ CONTAINER : garde 4 pavés par rangée sur desktop */
.pave-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
}

/* RESPONSIVE TABLETTE : 2 pavés par ligne */
@media (max-width: 992px) {
  .pave-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* RESPONSIVE MOBILE : 1 pavé par ligne */
@media (max-width: 600px) {
  .pave-container {
    grid-template-columns: 1fr;
  }
}
