/* =====================================================
   La Bonne Baguette - Site public
   ===================================================== */

/* Styles communs a tous les carrousels publics */
@import url('carrousel.css');

/* =====================================================
   Police de marque : Nexa (fichiers locaux assets/fonts/nexa)
   ===================================================== */
@font-face { font-family:'Nexa'; src:url('../fonts/nexa/Nexa-Light.woff2') format('woff2'),   url('../fonts/nexa/Nexa-Light.woff') format('woff');   font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'Nexa'; src:url('../fonts/nexa/Nexa-Regular.woff2') format('woff2'), url('../fonts/nexa/Nexa-Regular.woff') format('woff'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Nexa'; src:url('../fonts/nexa/Nexa-Book.woff2') format('woff2'),    url('../fonts/nexa/Nexa-Book.woff') format('woff');    font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Nexa'; src:url('../fonts/nexa/Nexa-Bold.woff2') format('woff2'),    url('../fonts/nexa/Nexa-Bold.woff') format('woff');    font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Nexa'; src:url('../fonts/nexa/Nexa-XBold.woff2') format('woff2'),   url('../fonts/nexa/Nexa-XBold.woff') format('woff');   font-weight:800; font-style:normal; font-display:swap; }
@font-face { font-family:'Nexa'; src:url('../fonts/nexa/Nexa-Black.woff2') format('woff2'),   url('../fonts/nexa/Nexa-Black.woff') format('woff');   font-weight:900; font-style:normal; font-display:swap; }

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #2b2b2b;
    line-height: 1.55;
}

a { color: #3b6e54; }
a:hover { color: #2c5340; }

.public-header {
    background: #3b6e54;
    color: #FFFFFF;
    padding: 1rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.public-header nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 1.2rem;
}
.public-header nav a:hover { color: #fff; }

.public-footer {
    margin-top: 3rem;
    padding: 1.5rem;
    text-align: center;
    background: #A60037;
    color: #FFFFFF;
    font-size: 0.9rem;
}

.public-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.public-container h1 { color: #3b6e54; margin: 0 0 0.5rem; }
.lead { color: #3b6e54; margin-top: 0; font-size: 1.05rem; }

.boutique-grid.public {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.boutique-card.public {
    background: #fff;
    border: 1px solid #cbded2;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: transform .15s, box-shadow .15s;
}
.boutique-card.public:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.boutique-card.public .boutique-logo {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 0.8rem;
    background: #f2f7f4;
    border-radius: 4px;
}
.boutique-card.public h2 { margin: 0 0 0.4rem; color: #3b6e54; font-size: 1.2rem; }
.boutique-card.public p  { margin: 0.3rem 0; font-size: 0.95rem; }
.boutique-card.public .adresse { color: #555; }

.horaires summary {
    cursor: pointer;
    color: #3b6e54;
    font-weight: 600;
    padding: 0.4rem 0;
}
.horaires ul { list-style: none; padding: 0; margin: 0.4rem 0; font-size: 0.9rem; }
.horaires li {
    display: flex;
    justify-content: space-between;
    padding: 0.15rem 0;
    border-bottom: 1px dotted #cbded2;
}
.horaires .jour { font-weight: 600; }
.horaires .creneaux { color: #555; }

.btn-cta {
    display: inline-block;
    background: #3b6e54;
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background .15s;
}
.btn-cta:hover { background: #2c5340; color: #fff; }
.btn-pay { background: #6772e5; }
.btn-pay:hover { background: #5469d4; }

.reservation-form { margin-top: 1.5rem; }

.reservation-step {
    background: #fff;
    border: 1px solid #cbded2;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.reservation-step h2 {
    margin-top: 0;
    color: #3b6e54;
    font-size: 1.15rem;
    border-bottom: 2px solid #FFFFFF;
    padding-bottom: 0.4rem;
}
.meta { color: #777; font-size: 0.9rem; }

.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #444;
}
.form-group input,
.reservation-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus {
    outline: none;
    border-color: #3b6e54;
    box-shadow: 0 0 0 2px rgba(59, 110, 84,0.15);
}

.categorie-block { margin-bottom: 1.5rem; }
.categorie-block h3 {
    color: #3b6e54;
    margin: 0.8rem 0 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.8rem;
}
.produit-card {
    background: #e6efe9;
    border: 1px solid #cbded2;
    border-radius: 6px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.produit-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    background: #fff;
}
.produit-info h4 { margin: 0; color: #3b6e54; font-size: 0.98rem; }
.produit-desc { font-size: 0.85rem; color: #666; margin: 0.2rem 0; }
.produit-prix { font-weight: 700; color: #3b6e54; margin: 0.2rem 0; }
.produit-qty { display: flex; align-items: center; gap: 0.4rem; }
.produit-qty label { margin: 0; font-size: 0.85rem; font-weight: 600; }
.produit-qty input { width: 70px; padding: 0.3rem; text-align: center; }

.panier-total {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: #e6efe9;
    border-left: 4px solid #3b6e54;
    font-size: 1.1rem;
    font-weight: 700;
    color: #3b6e54;
    text-align: right;
}

.form-actions { text-align: center; margin: 2rem 0 1rem; }

.error-message,
.success-message {
    padding: 0.9rem 1.1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid;
}
.error-message   { background: #fdecea; border-color: #c0392b; color: #922b21; }
.success-message { background: #e8f5e9; border-color: #27ae60; color: #1e6b3b; }

.empty {
    background: #e6efe9;
    padding: 2rem;
    text-align: center;
    border-radius: 6px;
    color: #777;
}

.confirmation-banner {
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
.confirmation-banner h1 { margin: 0 0 0.5rem; }
.confirmation-banner.success { background: #e8f5e9; border-left: 6px solid #27ae60; }
.confirmation-banner.success h1 { color: #1e6b3b; }
.confirmation-banner.pending { background: #fff8e1; border-left: 6px solid #f39c12; }
.confirmation-banner.pending h1 { color: #7d5a0b; }

.reservation-details {
    background: #fff;
    border: 1px solid #cbded2;
    border-radius: 8px;
    padding: 1.5rem;
}
.detail-block { margin-bottom: 1.2rem; }
.detail-block h3 {
    color: #3b6e54;
    margin: 0 0 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.produits-table { width: 100%; border-collapse: collapse; }
.produits-table th,
.produits-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #cbded2;
    text-align: left;
}
.produits-table thead th { background: #e6efe9; color: #3b6e54; }
.produits-table tfoot th { text-align: right; padding-top: 1rem; font-size: 1.05rem; }

.statut-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
}
.statut-en_attente { background: #fff3cd; color: #7d5a0b; }
.statut-confirme   { background: #cfe5ff; color: #084b8f; }
.statut-pret       { background: #d4edda; color: #1e6b3b; }
.statut-retire     { background: #e2e3e5; color: #4a4a4a; }
.statut-annule     { background: #f8d7da; color: #922b21; }

@media (max-width: 720px) {
    .form-row { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .public-header nav a { margin-left: 0; margin-right: 1rem; }
    .produits-table { display: block; overflow-x: auto; }
}
