/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #333;
  padding-top: 90px;               /* navbar fixed-top */
  overflow-x: hidden;              /* tue le scroll horizontal */
}
@media (max-width: 991.98px) { body { padding-top: 120px; } }

/* Containers */
.container,
.container-sm, .container-md, .container-lg, .container-xl {
  padding-left: 16px;
  padding-right: 16px;
}

/* ===== Bandeau ===== */
.banner-header {
  background: url('/images/banniere.jpg') center/cover no-repeat;
  min-height: 220px;
  display: flex;
  align-items: center;
}
.logo img { height: 80px; }
.contact p { font-size: 18px; font-weight: bold; color: #fff; }

/* ===== Sections ===== */
section { padding: 40px 20px; text-align: center; }
#accueil { color: #000; }

/* ===== Grilles ===== */
.row > [class*="col-"] { margin-bottom: 1.25rem; }

/* ===== Cartes (menu + catégories) ===== */
.card {
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 620px;                /* ↓ réduite de 620 → 560 */
  width: 600px;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  border-color: #c82333;
}

.card-img-top {
  width: 100%;
  height: 350px;                /* ↓ réduite de 280 → 230 */
  object-fit: cover;
}

.card-body {
  position: relative;
  text-align: center;
  padding: 1.25rem 1rem 2.5rem;   /* un peu plus bas pour la mention */
}

.photo-note {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  font-size: 0.75rem;
  color: #6c757d;
  background: rgba(255,255,255,0.8);  /* léger fond blanc semi-transparent */
  padding: 2px 6px;                   /* petit espace pour lisibilité */
  border-radius: 4px;                 /* angles doux */
}
/* Titres & textes des cartes */
.card .card-title {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
  color: #000;
  margin-bottom: .25rem;
  transition: color .25s ease;
}
.card .card-text { transition: color .25s ease; }

/* Liens de carte (neutralise le bleu) */
a.card-link {
  color: inherit !important;
  text-decoration: none;
  cursor: pointer;
  display: block;
}
a.card-link:hover, a.card-link:focus { text-decoration: none; }
a.card-link:hover .card-title,
a.card-link:hover .card-text { color: #c82333 !important; }

/* ===== Boutons (rouge thème) ===== */
.btn, button {
  background-color: #c82333;
  color: #fff;
  border: 2px solid #c82333;
  transition: all .25s ease;
  font-weight: 600;
}
.btn:hover, button:hover {
  background: #fff;
  color: #c82333;
  border-color: #c82333;
  text-decoration: none;
}

/* Boutons outline utilisés */
.btn-outline-dark,
.btn-outline-primary {
  color: #c82333;
  border-color: #c82333;
  background: transparent;
}
.btn-outline-dark:hover,
.btn-outline-primary:hover {
  background: #c82333;
  color: #fff;
  border-color: #c82333;
}

/* Switch de catégories (menu) */
.menu-navigation .btn {
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 30px;
}
.menu-navigation .btn.active {
  background-color: #c82333;
  color: #fff;
  border-color: #c82333;
}

/* Lien téléphone (header) */
.contact-link {
  color: #fff;
  text-decoration: none;
  transition: color .3s ease, text-decoration .3s ease;
}
.contact-link:hover { color: #f8c471; text-decoration: underline; }

/* ===== Footer ===== */
footer { background: #333; color: #fff; padding: 20px; text-align: center; }

/* ===== Titres de section (ex: Les Standards) ===== */
.section-title {
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: center;
}
.section-title h2 {
  display: inline-block;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  font-size: 2rem;
  font-weight: 600;
  color: #c82333;
}

/* ===== Cartes d’accueil (catégories) ===== */
.card-accueil {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all .3s ease;
  height: 450px;                 /* un peu plus haute aussi */
  display: flex;
  flex-direction: column;
  background-color: #fff;
}
.card-accueil .card-img-top { height: 240px; }
.card-accueil:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===== Ancien bloc compat ===== */
.pizza-list { display: flex; justify-content: space-around; flex-wrap: wrap; }
.pizza-item {
  background: #fff; border: 1px solid #ddd; padding: 20px; margin: 10px; width: 200px;
  text-align: center; box-shadow: 0 0 10px rgba(0,0,0,.1);
}

/* Titre H1 */
.display-4 { font-size: 2.4rem; }
@media (min-width: 768px) { .display-4 { font-size: 2.8rem; } }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .card-img-top { height: 220px; }
  .card-accueil { height: auto; }
}

@media (max-width: 768px) {
  /* === Cartes === */
  .card-accueil {
    width: 90% !important;
    max-width: 90%;
    height: 350px !important;
    margin: 0 auto 15px;
    border-radius: 12px;
  }

  .card{
    width: 90% !important;
    max-width: 90%;
    height: 620px !important;
    margin: 0 auto 15px;
    border-radius: 12px;
    
  }

  /* Image plus compacte */
  .card-img-top {
    height: 200px !important;      /* ↓ plus petite pour mobile */
    width: 100%;
    object-fit: cover;
  }

  /* Contenu plus resserré */
  .card-body {
    padding: 0.75rem 1rem 1.5rem;
    text-align: center;
  }

  /* Mention photo plus lisible sur petit écran */
  .photo-note {
    bottom: 0.4rem;
    right: 0.5rem;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 1px 5px;
    border-radius: 4px;
  }

  /* Boutons plus ergonomiques */
  .btn {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 0;
    font-size: 0.9rem;
  }

  /* Titre plus lisible mais compact */
  .card .card-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  /* Texte descriptif plus petit */
  .card .card-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Centrage global */
  section {
    padding: 15px 10px;
  }
  .row {
    justify-content: center;
  }
}

/* ===== Boutons réseaux sociaux (avis) ===== */
.btn-social {
  background-color: #fff;
  color: #000;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-social:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  color: #c82333; /* petite touche rouge au hover */
  text-decoration: none;
}