/* Variables de couleurs - Thème Mumu */
:root {
    --main-bg-color: rgb(253, 233, 143);
    --text-color: #2c1810;
    --accent-color: #e63946;
    --border-color: #2c1810;
    --highlight-color: #f4a261;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--main-bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

/* Bordure du site */
.vintage-border {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    border: 15px solid var(--border-color);
    background-color: var(--main-bg-color);
    box-shadow: 0 0 0 5px var(--accent-color), 0 0 20px rgba(0,0,0,0.2);
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* Décoration des chats */
.cat-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.cat-decoration img {
    position: absolute;
    width: 150px;
    height: auto;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.cat-left {
    top: -30px;
    left: -30px;
    transform: rotate(-15deg);
}

.cat-right {
    top: -30px;
    right: -30px;
    transform: scaleX(-1) rotate(-15deg);
}

/* En-tête */
header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 3px dashed var(--accent-color);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Navigation */
nav {
    margin-bottom: 30px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

nav ul li a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

nav .cart-link-container,
nav .cart-icon-container {
    margin-left: 10px;
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    margin: 0 auto 40px;
    padding: 60px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--highlight-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 700px;
}

.hero h2 {
    font-size: 2.6rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.25);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.hero .btn {
    background-color: white;
    color: var(--accent-color);
    border: none;
}

.hero .btn:hover {
    background-color: rgba(255,255,255,0.85);
}

/* Sections principales */
.menu-section {
    margin-bottom: 50px;
}

.menu-section h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
    background-color: var(--main-bg-color);
    z-index: 1;
}

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

.menu-item {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2f6;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.menu-item:hover .card-image img {
    transform: scale(1.05);
}

.menu-item h3 {
    margin: 15px 0 10px;
    padding: 0 15px;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.menu-item p {
    padding: 0 15px 5px;
    margin: 0 0 5px 0;
}

.menu-item .dimension {
    font-size: 0.9rem;
    color: #666;
    padding: 0 15px;
    margin-bottom: 5px;
}

.menu-item .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    padding: 0 15px 15px;
    margin: 0 0 15px 0;
    border-bottom: 1px dashed #ddd;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0 15px 20px;
}

.menu-item .btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    text-align: center;
    display: inline-block;
    width: 100%;
}

.menu-item .btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 111, 217, 0.3);
}

.menu-item .btn-cart {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: white;
}

.menu-item .btn-cart:hover {
    background-color: transparent;
    color: var(--highlight-color);
    box-shadow: 0 5px 15px rgba(244, 162, 97, 0.4);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Pied de page */
footer {
    margin-top: auto;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 30px 0 0;
    border-top: 3px dashed var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 20px 30px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

/* Page de contact */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.contact-card p {
    margin: 15px 0;
    line-height: 1.6;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.contact-form h2 {
    color: var(--text-color);
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 111, 217, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

.btn-submit:hover {
    background-color: #16599f;
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 20px;
    }
}

/* Modale de détails produit */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    font-weight: bold;
}

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

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: var(--accent-color);
    margin: 0 0 10px 0;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #eef2f6;
}

.modal-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.spec-item {
    background-color: #f9f9f9;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
}

.spec-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.spec-item span {
    color: #666;
    font-size: 0.95em;
}

.modal-description {
    line-height: 1.6;
    color: #444;
    margin: 10px 0;
}

.modal-price {
    font-size: 1.5em;
    color: var(--accent-color);
    font-weight: bold;
    margin: 15px 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-actions .btn-cart {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: white;
}

.modal-actions .btn-cart:hover {
    background-color: transparent;
    color: var(--highlight-color);
}

.modal-actions .btn:not(.btn-cart) {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.modal-actions .btn:not(.btn-cart):hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* Tablette - Paysage */
@media (max-width: 1024px) {
    body { padding: 15px; }
    .vintage-border { border-width: 8px; padding: 15px; }
    h1 { font-size: 2.3rem; }
    .menu-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
}

/* Tablette - Portrait */
@media (max-width: 768px) {
    body { padding: 10px; }
    .vintage-border { border-width: 6px; padding: 10px; }
    h1 { font-size: 1.9rem; letter-spacing: 1px; }
    .subtitle { font-size: 1.1rem; }
    header { padding: 15px 0; margin-bottom: 15px; }
    nav ul { gap: 10px; }
    nav ul li { margin: 5px 8px; }
    nav ul li a { font-size: 1rem; padding: 5px 8px; }
    .hero { padding: 40px 15px; }
    .hero h2 { font-size: 1.7rem; }
    .hero p { font-size: 1.1rem; }
    .menu-section h2 { font-size: 1.6rem; margin-bottom: 20px; }
    .menu-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 0 10px; }
    .card-image { height: 200px; }
    .modal-content { padding: 20px; max-height: 85vh; }
    .modal-specs { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 20px; padding: 0 15px 20px; }
}

/* Mobile */
@media (max-width: 576px) {
    body { padding: 5px; }
    .vintage-border { border-width: 4px; padding: 8px; }
    h1 { font-size: 1.5rem; letter-spacing: 0.5px; }
    .subtitle { font-size: 0.95rem; }
    nav ul { flex-direction: column; align-items: center; gap: 5px; }
    nav ul li { margin: 3px 0; }
    nav ul li a { font-size: 0.9rem; }
    .hero h2 { font-size: 1.4rem; }
    .hero p { font-size: 1rem; }
    .menu-section h2 { font-size: 1.4rem; margin-bottom: 15px; padding: 0 10px; }
    .menu-grid { grid-template-columns: 1fr; gap: 15px; padding: 0 5px; }
    .card-image { height: 180px; padding: 10px; }
    .menu-item h3 { font-size: 1.1rem; margin: 10px 0 8px; }
    .menu-item .price { font-size: 1.1rem; padding: 0 10px 10px; }
    .menu-item .btn { font-size: 0.75rem; padding: 8px 12px; }
    .modal-content { padding: 15px; border-radius: 8px; }
    .modal-actions { flex-direction: column; gap: 10px; }
    .modal-actions .btn { width: 100%; min-width: unset; }
    .contact-container { padding: 10px; }
    .contact-card { padding: 15px; }
    .contact-form { padding: 15px; }
}
