/* =========================
   Variables globales
========================= */
:root {
    --vert: #25A63C;
    --rouge: #C22E38;
    --blanc: #FFF;
    --beige: #FD8C0D;
    --font-primary: "Outfit", sans-serif;
}

/* =========================
   Reset global
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  height: 100%;
}
/* Main pousse le footer */
main {
  flex: 1;
  padding: 0px;
}
body {
    display: flex;
    flex-direction: column;
    font-family: var(--font-primary);
    background-color: var(--blanc);
    min-height: 100vh; /* force au moins toute la hauteur écran */
    color: #333;
    height: 100%;
}
a {
    text-decoration: none;
    color: var(--vert);
    font-weight: normal;
    margin-bottom: 5px;
}
p{
    font-size: 14px;
}
ul { list-style: none; }

/* =========================
   Header / Navbar
========================= */
header {
    background-color: var(--blanc);
    color: var(--vert);
    padding: 10px 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px; /* taille fixe ou responsive */
    width: auto;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-form input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 300px;
}

.search-form button {
    background: var(--beige);
    color: var(--blanc);
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--beige);
}

.recherche-page .resultats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.produit {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}


.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links li a {
    color: var(--vert);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links li a:hover {
    color: var(--beige);
}

/* Hamburger menu */
.mobile-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--blanc);
}

.panier-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--blanc);
    gap: 20px;
}

.burger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--blanc);
    gap: 20px;
}

/* =========================
   Footer
========================= *

/* =========================
   Buttons
========================= */
button, .btn {
  background-color: var(--beige);
  border: none;
  padding: 6px 10px;
  color: var(--blanc);
  font-weight: normal;
  cursor: pointer;
  border-radius: 50px;
  transition: 0.3s;
  text-align: center;

}

button:hover, .btn:hover {
    background-color: var(--rouge);
    color: #fff;
}

.hero-btn {
    background-color: var(--beige);
  border: none;
  padding: 6px 10px;
  color: var(--blanc);
  font-weight: normal;
  cursor: pointer;
  border-radius: 50px;
  transition: 0.3s;
  text-align: center;
}

/* =========================
   Menu pizzas
========================= */
.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
    padding: 20px;
}

.pizza {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.pizza:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Style de base pour les images de pizza */
.pizza-menu {
    width: 100%;         /* Prend toute la largeur du conteneur */
    max-width: 150px;    /* Limite la taille maximale */
    height: auto;        /* Garde les proportions */
    border-radius: 10px; /* Coins arrondis */
    object-fit: cover;   /* Remplit le conteneur sans déformer l'image */
    display: block;
    margin: 0 auto;      /* Centre l'image dans son conteneur */
    transition: transform 0.3s ease; /* Animation au survol */
}

/* Effet au survol */
.pizza-menu:hover {
    transform: scale(1.05); /* Zoom léger au passage de la souris */
}



/* =========================
   Footer
========================= */
footer {
    background-color: var(--vert);
    color: var(--blanc);
    text-align: center;
    padding: 5px;
    font-size: 0.9rem;
    border-top: 4px solid var(--beige);
    width: 100%;
    margin-top: auto;
}


footer p {
    margin-bottom: 10px;
}

footer a {
    color: var(--beige);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

footer .connexion{
    color: var(--blanc);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

footer a:hover {
    color: var(--blanc);
}

/* Réseaux sociaux dans le footer */
.footer-social { 
    margin-top: 5px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social a {
    color: var(--blanc);
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer-social a:hover {
    color: var(--beige);
}

/* HERO IMAGE */
.hero {
    background: url('../images/cover.jpg') no-repeat center center/cover;
    height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--blanc);
    text-align: center;
    position: relative;
}

/* OFFRE PROMO */
.promo {
    background-color: var(--rouge);
    color: var(--blanc);
    text-align: center;
    padding: 20px;
    margin: 0px auto;
}

.promo h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.promo p {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* FEATURED PRODUCTS */
.featured h2 {
    text-align: center;
    margin-bottom: 20px;
}

.featured .menu {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
}

.featured .pizza img {
    width: 60%;
    border-radius: 10px;
    height: auto;
    object-fit: cover;
    text-align: center;
    justify-content: center;
    align-items: center;
}
.img-container {
    text-align: center; /* centre horizontalement l'image */
}

.featured .pizza h3 {
    margin: 10px 0;
}

.btn-plus {
  background-color: var(--beige);
  border: none;
  padding: 6px 10px;
  color: var(--blanc);
  font-weight: normal;
  cursor: pointer;
  border-radius: 50px;
  transition: 0.3s;
  text-align: center;
}

/* ABOUT */
.about {
    text-align: center;
    padding: 40px 20px;
}

.about h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about p {
    max-width: 800px;
    margin: 0 auto 15px auto;
    line-height: 1.6;
}





.carte {
    text-align: center; /* centre tout le contenu horizontalement */
    margin-bottom: 20px;
}

.carte h3 {
    margin-bottom: 15px;
}

.carte #btn-carte {
    display: inline-block; /* s'assure que le bouton se centre */
    margin: 0 auto;
}

/* Modal overlay */
.modal {
  display: none; /* cacher par défaut */
  position: fixed;
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.7); 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
    max-width: 800px;   /* Limite largeur normale */
    width: 100%;        /* responsive */
    max-height: 100vh;   /* Limite hauteur */
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s; /* pour zoom fluide */
}

.modal-img-container {
    position: relative; /* permet de placer les boutons par-dessus l'image */
    overflow: hidden;
    text-align: center;
}

.zoom-controls {
    position: absolute;
    bottom: 15px;       /* en bas de l'image */
    right: 15px;        /* à droite */
    display: flex;
    gap: 10px;
    z-index: 10;
}

.zoom-controls button {
    background-color: rgba(0,0,0,0.5);
    color: var(--blanc);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.zoom-controls button:hover {
    background-color: var(--beige);
    color: var(--vert);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--blanc);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: var(--beige);
}

/* Navigation menu horizontale */
.menu-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.menu-nav button {
    background-color: var(--vert);
    color: var(--blanc);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.menu-nav button:hover, .menu-nav button.active {
    background-color: var(--beige);
}

/* Liste des produits */
.categorie {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.produit {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    width: 250px;
    transition: 0.3s;
}

.produit img {
    width: 100%;
    height: 230px;
    border-radius: 10px;
}

.produit:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}





/* =======================
   PANIER (cart.php)
======================= */
main.container {
  max-width: 1200px;
  width: 100%;
  margin: 20px auto;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

main.container h1 {
  text-align: center;
  margin-bottom: 5px;
  color: var(--rouge);
  font-size: 1rem;
}
.panier {
    text-align: center;
    margin: auto;
}
/* Tableau panier */
table {
  width: 100%;      /* s'adapte au contenu pour être large */
  margin: auto;
  min-width: 600px;
  border-collapse: collapse;
}

table th, table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

table th {
  background: var(--vert);
  color: var(--blanc);
  font-weight: bold;
}

table tr:hover {
  background: #f9f9f9;
}

table td strong {
  color: var(--rouge);
}

/* Panier vide */
main.container p {
  text-align: center;
  font-size: 14px;
  margin-bottom: 5px;
}

/* =========================
   Checkout / Localisation
========================= */
/* Formulaire */
form {
    width: 50%;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: auto;
}
.checkout-form h2{
  text-align: center;
  margin: auto;
}
.checkout-form form label {
    display: block;
    margin-top: 15px;
    color: #333;
    font-size: 14px;
    text-align: left;
}

.checkout-form form input[type="text"],
.checkout-form form input[type="tel"],
.checkout-form form select,
.checkout-form form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
    box-sizing: border-box;
}

.btn-loc { 
  padding: 10px 15px; 
  border: none; 
  border-radius: 8px; 
  background: var(--beige); 
  color: #fff; 
  cursor: pointer; 
  width: 100%;
}

#map { height: 300px; border-radius: 10px; margin-top: 10px; }
.recap { background: #f9f9f9; padding: 15px; border-radius: 10px; margin-top: 20px; text-align: center; align-items: center}

/* Bouton Me localiser */
#getLocation {
    width: 100%;
    background-color: var(--beige);
}

#getLocation:hover {
    background-color: var(--rouge);
}

/* Carte Leaflet */
#map {
    width: 100%;
    height: 300px;
    border: 2px solid var(--vert);
    border-radius: 8px;
    margin-top: 10px;
}

/* Status GPS */
#gps-status {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #555;
}

/* Textarea adresse */
#adresse {
    min-height: 60px;
}

.pac-container {
    z-index: 9999 !important; /* pour s'afficher au-dessus de la carte */
}

input#adresse:disabled, 
input#adresse[readonly] {
    background: #fff !important; /* empêche le fond gris */
    color: #000 !important;
    pointer-events: auto !important;
}

/* =========================
   Page Login / Form
========================= */

.login form label {
    display: block;
    margin: 15px 0 5px;
    color: #333;
    text-align: left;
}

.login form input[type="text"],
.login form input[type="password"],
.login form input[type="email"],
.login form input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--vert);
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.login form input[type="text"]:focus,
.login form input[type="password"]:focus,
.login form input[type="email"]:focus,
.login form input[type="tel"]:focus {
    border-color: var(--beige);
}

/* Détail produit */
.produit-detail {
    display: flex;
    align-items: flex-start; /* tout à gauche */
    background: var(--blanc);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Détail produit */
.produit-detail .extra{
    display: flex;
    align-items: flex-start; /* tout à gauche */
    gap: 30px;
}

.produit-detail h1 {
    color: var(--vert);
    font-size: 2rem;
    margin-bottom: 5px;
}

.produit-detail .produit-img {
    width: 70%;
    max-width: 400px;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 10px;
}

.produit-info p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.produit-detail form {
    margin-top: 20px;
    align-items: flex-start; /* tout à gauche */
    text-align: left;
}

.produit-detail label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

.produit-detail input[type="text"],
.produit-detail textarea,
.produit-detail select {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.produit-detail input[type="number"]{
    width: 10%;
    padding: 1px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.produit-detail input[type="checkbox"] {
    margin-right: 8px;
}

.produit-detail form h3 {
    color: var(--rouge);
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1rem;
    text-align: left;
}

.qty {
    display: flex;
    gap: 15px;
}
.produit-detail button {
    display: inline-block;
    text-align: left;
    justify-content: left;
    background: var(--vert);
    color: var(--blanc);
    border: none;
    padding: 10px 10px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.produit-detail button i {
    margin-right: 8px;
}

.produit-detail button:hover {
    background: var(--beige);
    color: var(--blanc);
}

.panier h1 {
    color: var(--vert);
    font-size: 2rem;
    margin-bottom: 20px;
}

.panier table {
    width: 100%;
    border-collapse: collapse;
    background: var(--blanc);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.panier table th,
.panier table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
}

.panier table th {
    background: var(--vert);
    color: var(--blanc);
    font-weight: 600;
}

.panier table td input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.panier-actions {
    margin-top: 15px;
    margin-bottom: 15px;
}

h3 {
    color: var(--rouge);
    font-size: 1.2rem;
}

/* Messages */
p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.suivi-form {
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suivi-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.commande-details {
    margin-top: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.commande-details h2 {
    color: var(--vert);
    margin-bottom: 15px;
}

.error-msg {
    text-align: center;
    color: var(--rouge);
    margin-top: 15px;
}




.timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step {
  text-align: center;
  flex: 1;
  position: relative;
  color: #999;
}

.step i {
  font-size: 28px;
  margin-bottom: 5px;
  display: block;
  color: #FD8C0D; /* orange par défaut */
  transition: color 0.3s ease;
}

.step.active i {
  color: #25A63C; /* vert si validé */
}

.step span {
  font-size: 14px;
  display: block;
}

.step::after {
  content: '';
  position: absolute;
  top: 14px;
  right: -50%;
  width: 100%;
  height: 4px;
  background: #ddd;
  z-index: -1;
}

.step.active::after {
  background: #25A63C;
}

.step:last-child::after {
  display: none;
}




.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    color: #555;
    transition: 0.3s;
    font-weight: 500;
}

.tab.active {
    color: var(--beige);
    border-bottom: 3px solid var(--beige);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
    text-align: left;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

.bons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.bon-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.bon-card h3 {
    color: var(--vert);
    margin-bottom: 10px;
}

.bon-code {
    background: var(--beige);
    color: #fff;
    padding: 8px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
}

.bon-code:hover {
    background: var(--rouge);
}

.cmd-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.cmd-table th, .cmd-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.cmd-table th {
    background: var(--vert);
    color: white;
}
.tab-content h3 {
    text-align: center;
    margin: auto;
}
.tab-content form {
    margin-top: 15px;
    align-items: flex-start; /* tout à gauche */
    display: flex;
    flex-direction: column;
    width: 50%;
    justify-content: center;
    text-align: center;
}

/* Correction du sélecteur pour éviter d'affecter les inputs globaux */
.tab-content form input[type="text"],
.tab-content form input[type="email"],
.tab-content form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--vert);
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

/* Bouton d’envoi */
.tab-content form .btn-submit {
    background: var(--beige);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.tab-content form .btn-submit:hover {
    background: var(--rouge);
}


.alert {
    background: #e7f5ee;
    color: #2d8a4d;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: center;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: var(--rouge);
}
#map { height: 500px; width: 100%; border-radius:10px; margin-top:15px; position: relative; }
.locate-btn {
    position: absolute;
    top: 50px;
    right: 10px;
    background: white;
    color: #000;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 5px rgba(0,0,0,0.3);
    z-index: 2000;
}
.locate-btn:hover { background: #f3f3f3; }

















/* ==============
   NAV MOBILE
   ============== */
/* Version mobile uniquement */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .navbar-mobile {
    display: flex;
    gap: 10px;
  }
  .burger, .panier-icon, #mobile-search-icon {
    display: block;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--vert);
  }

  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 1px;
  }


  .mobile-nav {
    display: none;
    position: absolute;
    top: 100px;
    right: 0;
    background: #fff;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  .mobile-nav.active {
    display: block;
  }

  .mobile-nav ul {
    list-style: none;
    padding: 0;
  }

  .mobile-nav li {
    border-bottom: 1px solid #ddd;
  }

  .mobile-nav a {
    display: block;
    padding: 12px;
    color: var(--beige);
    text-decoration: none;
    font-weight: 600;
  }

  .mobile-nav a:hover {
    color: var(--rouge);
  }

  .search-form {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  .search-form.active {
    display: flex;
  }

  .search-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    width: 500px;
  }

  .search-form button {
    background: var(--beige);
    color: #fff;
    border: none;
    padding: 8px 5px;
    width: 50px;
  }
}

/* ======================================================
   RESPONSIVE DESIGN — Petits écrans (smartphones & tablettes)
   ====================================================== */
@media (max-width: 768px) {

  /* Structure générale */
  body {
    font-size: 14px;
    line-height: 1.5;
  }
  main {
    padding: 0px;
    margin: auto;
  }

  /* ===== HERO ===== */
  .hero {
    background: url('../images/covermini.png') no-repeat center center/cover;
    display: flex;
    color: var(--blanc);
    position: relative;
    height: 30vh;
    padding: 10px;
    background-position: center;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero .hero-btn {
    position: absolute;
    top: 150px;
    right: 300px;
    background-color: var(--beige);
    border: none;
    padding: 6px 10px;
    color: var(--blanc);
    font-weight: normal;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
    text-align: center;
  }

  /* ===== PROMO & ABOUT ===== */
  .promo {
    padding: 20px 10px;
  }
  .promo h2 {
    font-size: 1.3rem;
  }
  .promo p {
    font-size: 0.95rem;
  }
  .about {
    padding: 20px 10px;
  }
  .about h2 {
    font-size: 1.3rem;
  }
  .about p {
    font-size: 0.95rem;
  }

  /* MENU PRODUITS - LISTE FLEX */
  .menu, .featured .menu, .categorie{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px; /* enlever padding pour occuper toute la largeur */
    width: 100%;
    justify-content: left;
    margin: auto;
  }

  .produit, .pizza {
    display: flex;
    align-items: center;      /* aligne les éléments verticalement au centre */
    justify-content: space-between; /* espace entre image/texte/bouton */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    gap: 10px;
    width: 100%;
    transition: 0.3s;
    margin: auto;
  }

  .produit .text, .pizza .text {
    flex: 1;                /* occupe tout l’espace central */
    display: flex;
    flex-direction: column;
    justify-content: left;
    gap: 3px;
    padding: 0 10px;
    width: 200px;
    text-align: left;
  }

  .produit h3, .pizza h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--vert);
  }

  .produit p, .pizza p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    text-align: left !important;
  }

  .produit strong, .pizza strong {
    color: var(--rouge);
    font-size: 0.9rem;
  }

  .btn-plus {
    flex-shrink: 0;       /* bouton reste à droite */
    padding: 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--beige);
    border: none;
    color: var(--blanc);
    font-weight: normal;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
    text-align: center;
  }

  /* Images globales override pour grid */
  .menu .pizza img,
  .categorie .produit img {
    width: 50px;
    height: 50px;
    object-fit: cover;
  }

  /* ===== DÉTAIL PRODUIT ===== */
  .produit-detail {
    flex-direction: column;
    align-items: center;
  }

  .produit-detail .extra {
    flex-direction: column;
    gap: 10px;
  }

  .produit-detail .produit-img {
    width: 30%;
    max-width: 100%;
  }

  .produit-detail form {
    width: 100%;
    padding: 30px;
  }

  .qty {
    justify-content: space-between;
  }

  .produit-detail button {
    display: inline-block;
    text-align: center;
    justify-content: center;
    background: var(--vert);
    color: var(--blanc);
    border: none;
    padding: 10px 10px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
    .recherche-page .resultats {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne */
    gap: 12px; /* espace entre cartes */
    align-items: start;
    padding: 10px;
    box-sizing: border-box;
  }

  .recherche-page .resultats .card,
  .recherche-page .resultats > * {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    box-sizing: border-box;
  }

  .recherche-page .resultats .card img,
  .recherche-page .resultats > * img {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }

  .recherche-page .resultats .card .title,
  .recherche-page .resultats > * .title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.1;
  }

  .recherche-page .resultats .card .desc,
  .recherche-page .resultats > * .desc {
    font-size: 0.82rem;
    color: #555;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  /* bouton / prix en bas */
  .recherche-page .resultats .card .meta,
  .recherche-page .resultats > * .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
  }

  /* assure que la grille n'ajoute pas de scrollbar horizontale */
  .recherche-page .resultats {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* ===== PANIER ===== */
/* ===== PANIER (Version petit écran corrigée sans double scroll) ===== */
  .panier {
    text-align: center;
    margin: 20px auto;
    width: 400px;
    padding: 0 0px;
    box-sizing: border-box;
    overflow: visible; /* ✅ Plus de scroll interne */
  }

  #panier-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    overflow: visible; /* ✅ évite un scroll local */
  }

  #panier-table,
  #panier-table thead,
  #panier-table tbody,
  #panier-table th,
  #panier-table td {
    display: block;
    width: 400px;
    box-sizing: border-box;
  }

  #panier-table tr {
    display: flex;
    flex-direction: column;
    background: #fff;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden; /* ✅ empêche débordement interne */
  }

  #panier-table .entete,
  #panier-table th {
    display: none; /* Cache les en-têtes sur mobile */
  }

  #panier-table td {
    text-align: left;
    padding: 0px 5px;
    border: none;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    word-break: break-word;
  }

  #panier-table td:last-child {
    border-bottom: none;
  }

  #panier-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #333;
    flex-basis: 100%;
    margin-bottom: 4px;
    font-size: 14px;
  }


  /* Bouton supprimer */
  .btn-sup {
    background: var(--rouge);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    padding: 6px 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
  }

  /* Total panier */
  #total-panier {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    color: #222;
    margin-top: 20px;
  }

  /* Actions (ex: boutons et select) */
  .panier-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  html, body {
    overflow-x: hidden;
  }

  /* ===== FORMULAIRES (login, checkout) ===== */
  form, .tab-content form {
    width: 100%;
  }
  input, select, textarea {
    font-size: 0.95rem;
  }
  #map {
    height: 200px;
  }
  
  .locate-btn {
    top: 50px;
    right: 10px;
    padding: 8px 3px;
    font-size: 12px;
    border-radius: 6px;
    color: #000;
    width: 100px;
    z-index: 2000;
  }
  /* ===== TABS & TABLES ADMIN ===== */
  .tabs {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .tab {
    font-size: 0.9rem;
  }
  .cmd-table {
    font-size: 0.9rem;
  }
  .cmd-table th, .cmd-table td {
    padding: 8px;
  }

  /* ===== MODAL ===== */
  .modal-content {
    max-width: 90%;
    height: auto;
  }
  .zoom-controls {
    bottom: 10px;
    right: 10px;
  }

  /* ===== FOOTER ===== */
  footer {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
  .footer-social {
    gap: 8px;
  }

  /* ===== DIVERS ===== */
  .btn, button {
    width: 80%;
    margin: auto;
    font-size: 0.9rem;
    padding: 10px;
    margin-bottom: 10px;
  }
  h1, h2, h3 {
    font-size: 1.1rem;
  }
}




























