/* css/style.css */

/* Réinitialisation de base et polices */
body, h1, h2, h3, p, ul, li, a, span {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif; /* Police de base, à affiner */
    color: #333; /* Couleur de texte principale */
}

body {
    background-color: #f4f0e8; /* Un fond clair, légèrement crème */
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
header {
    background-color: #5D4037; /* Marron foncé pour le header */
    color: #fff;
    padding: 10px 0;
    border-bottom: 3px solid #A1887F; /* Un marron plus clair pour la bordure */
}

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

header .logo img {
    height: 60px; /* Ajuster selon la taille du logo */
    /* Prévoir un style pour le logo quand il sera fourni */
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #FFCA28; /* Une couleur accent (jaune/or) pour le survol et l'actif */
}

header .language-selector span,
header .language-selector a {
    color: #fff;
    margin-left: 5px;
    text-decoration: none;
}

header .language-selector a:hover {
    text-decoration: underline;
}

/* Main content */
main .container {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Hero Section (Page d'accueil) */
.hero {
    background-color: #A1887F; /* Marron moyen pour la section hero */
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f4f0e8;
}

/* Boutons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: #FFCA28; /* Couleur accent */
    color: #5D4037; /* Texte marron foncé sur bouton jaune */
}

.btn-primary:hover {
    background-color: #FFB300; /* Accent plus foncé au survol */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #5D4037; /* Marron foncé */
    color: #fff;
    border: 1px solid #A1887F;
}

.btn-secondary:hover {
    background-color: #4E342E; /* Marron plus foncé au survol */
    transform: translateY(-2px);
}

/* Section Produits en Vedette (Page d'accueil) */
.featured-products h2, .about-us h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    color: #5D4037;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.product-card img {
    max-width: 100%;
    height: 200px; /* Hauteur fixe pour l'image */
    object-fit: cover; /* Assure que l'image couvre bien sans se déformer */
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #5D4037;
}

.product-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
    min-height: 40px; /* Pour aligner les boutons si les descriptions varient */
}

.product-card span {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    color: #E65100; /* Couleur prix (orange foncé / terre cuite) */
    margin-bottom: 15px;
}

/* Section À Propos (Page d'accueil) */
.about-us {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-us p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Footer */
footer {
    background-color: #4E342E; /* Marron très foncé pour le footer */
    color: #f4f0e8;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin-bottom: 10px;
    color: #f4f0e8;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

footer nav ul li {
    display: inline-block;
    margin: 0 10px;
}

footer nav ul li a {
    color: #FFCA28; /* Liens en couleur accent */
    text-decoration: none;
}

footer nav ul li a:hover {
    text-decoration: underline;
}

/* Styles pour la page produits.php */
.product-listing-page h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #5D4037;
    font-size: 2.5em;
}

/* Styles pour le panier (panier.php) */
.cart-page h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #5D4037;
    font-size: 2.5em;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th, .cart-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.cart-table th {
    background-color: #A1887F;
    color: white;
}

.cart-table img {
    max-width: 80px;
    height: auto;
    margin-right: 10px;
}

.cart-item-quantity input {
    width: 50px;
    padding: 5px;
    text-align: center;
}

.cart-summary {
    text-align: right;
    margin-bottom: 20px;
}

.cart-summary h3 {
    color: #5D4037;
    margin-bottom: 10px;
}

.checkout-button-container {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
    }
}

