/* Couleurs & Bases */
:root {
    --bleu-paysan: #0047AB;
    --blanc: #ffffff;
    --gris-clair: #f4f4f4;
    --or: #d4af37;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
header {
    background: var(--blanc);
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bleu-paysan);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    margin-left: 20px;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--bleu-paysan);
}

.btn-contact {
    background: var(--bleu-paysan);
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://via.placeholder.com/1920x1080'); /* Remplacez par une photo de la société */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
}

.hero h1 span {
    color: var(--blanc);
}

/* Countdown simple */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.time-unit {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
}

/* Grille de contenu */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 50px 5%;
}

.card {
    background: var(--gris-clair);
    padding: 30px;
    text-align: center;
    border-top: 5px solid var(--bleu-paysan);
    border-radius: 5px;
}

.btn-main {
    background: var(--or);
    color: black;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Bannière Promo */
.promo-banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://via.placeholder.com/1200x400?text=Fond+Paysan');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 5%;
    text-align: center;
    margin-bottom: 50px;
}

.promo-tag {
    background: var(--or);
    color: black;
    padding: 5px 15px;
    font-weight: bold;
    border-radius: 20px;
}

.promo-price {
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0;
}

.old-price {
    text-decoration: line-through;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Simulation Modal WooCommerce */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 350px;
    text-align: center;
    position: relative;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
/* Panier Styles */
.cart-page {
    padding: 40px 5%;
}

.cart-page h1 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bleu-paysan);
    display: inline-block;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .cart-container { grid-template-columns: 1fr; }
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    background: var(--gris-clair);
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.img-mini {
    width: 60px;
    height: 60px;
    background: #eee;
    border-radius: 5px;
}

.qty-input {
    width: 50px;
    padding: 5px;
    border: 1px solid #ddd;
}

/* Résumé */
.cart-summary {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.summary-line.total {
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--bleu-paysan);
}

.full-width {
    width: 100%;
    margin-top: 20px;
}

.secure-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

/* Contact Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    padding: 50px 0;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.map-placeholder {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.contact-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Carrousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.carousel-container {
    height: 100%;
    width: 100%;
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
    position: relative;
}

.slide.active {
    display: block;
    animation: fadeImg 0.8s;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Important : garde les proportions sans déformer */
    opacity: 0.7;
}

.slide-caption {
    position: absolute;
    bottom: 50px;
    left: 5%;
    color: white;
    z-index: 10;
}

.fb-tag {
    background: #1877F2;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.slide-caption h3 {
    font-size: 2.5rem;
    margin-top: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Boutons Navigation */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    padding: 16px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
}

.prev:hover, .next:hover { background: rgba(255,255,255,0.5); }
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 0 3px 3px 0; }

@keyframes fadeImg {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

