
/* Fichier : public/css/style.css (Version Finale et Complète) */

/* 1. VARIABLES & RESET */
:root {
    --primary-color: #1a472a; 
    --secondary-color: #f3a847;
    --text-color: #575757;
    --bg-color: #ffffff;
    --light-bg-color: #f7f5f2;
    --border-color: #e5e7eb;   
    --font-title: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-color); background-color: var(--bg-color); line-height: 1.8; font-size: 16px; }
main { display: block; } 
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--primary-color); }
h2 { font-size: 2.8rem; text-align: center; margin-bottom: 3rem; }
section { padding: 80px 0; }
a { color: var(--primary-color); text-decoration: none; }

/* 2. HEADER & NAVIGATION */
.main-header { position: fixed; width: 100%; top: 0; z-index: 1000; padding: 20px 0; transition: all 0.4s ease; }
.main-header.transparent-header { background-color: transparent; }
.main-header.scrolled { background-color: rgba(255, 255, 255, 0.95); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); backdrop-filter: blur(8px); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-title); font-size: 1.8rem; font-weight: 700; color: var(--primary-color); }
.main-header.transparent-header .logo, .main-header.transparent-header .main-nav a { color: #fff; }
.main-header.scrolled .logo, .main-header.scrolled .main-nav a { color: var(--primary-color); }
.main-nav ul { list-style: none; display: flex; gap: 1.8rem; }
.main-nav a { font-weight: 500; transition: color 0.3s; text-transform: uppercase; font-size: 0.9rem; }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-icon-link { position: relative; font-size: 1.3rem; color: var(--primary-color); transition: color 0.3s, transform 0.3s; }
.main-header.transparent-header .header-icon-link { color: #fff; }
.header-icon-link:hover { color: var(--secondary-color); transform: scale(1.1); }
.cart-count { position: absolute; top: -8px; right: -10px; background-color: var(--secondary-color); color: white; border-radius: 50%; font-size: 0.75rem; font-weight: 700; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border: 2px solid white; transition: transform 0.3s ease; }
#cart-icon.updated .cart-count { animation: bounce-count 0.6s ease; }
@keyframes bounce-count { 0% { transform: scale(1); } 30% { transform: scale(1.4); } 60% { transform: scale(0.8); } 100% { transform: scale(1); } }

/* 3. BOUTONS */
.button { font-family: var(--font-body); padding: 15px 35px; border-radius: 5px; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; border: 2px solid; transition: all 0.3s ease; display: inline-block; cursor: pointer; }
.button-primary { background-color: var(--secondary-color); border-color: var(--secondary-color); color: #fff; }
.button-primary:hover { background-color: #fff; color: var(--secondary-color); }

/* 4. SECTIONS COMMUNES (HERO, ABOUT, POLES, CTA) */
.hero-section { height: 100vh; background-image: url('/images/landing-background.jpg'); background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); }
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-content h1 { font-size: clamp(3rem, 7vw, 5rem); color: #fff; line-height: 1.2; text-shadow: 2px 2px 8px rgba(0,0,0,0.4); }
.hero-content .button { margin-top: 2rem; border-color: #fff; color: #fff; }
.hero-content .button:hover { background-color: #fff; color: var(--primary-color); }
.about-section { background-color: var(--bg-color); }
.about-container { display: flex; align-items: center; gap: 4rem; }
.about-image { flex: 1; } .about-image img { width: 100%; border-radius: 8px; }
.about-text { flex: 1; } .about-text h2 { text-align: left; font-size: 2.5rem; margin-bottom: 1.5rem; }
.key-points { display: flex; gap: 1.5rem; } .point { display: flex; flex-direction: column; align-items: center; text-align: center; }
.point i { font-size: 2rem; color: var(--secondary-color); margin-bottom: 1rem; }
.poles-section { background-color: var(--light-bg-color); }
.poles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pole-card { background-color: #fff; padding: 2.5rem; text-align: center; border: 1px solid var(--border-color); border-radius: 8px; transition: all 0.3s; }
.pole-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.07); }
.pole-icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1.5rem; }
.pole-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.cta-section { background-color: var(--primary-color); color: #fff; text-align: center; padding: 60px 0; }
.cta-section h2 { color: #fff; }
.button-light { background-color: #fff; border-color: #fff; color: var(--primary-color); }

/* 5. PAGE BOUTIQUE */
.shop-container { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; padding: 60px 15px; }
.filter-widget { margin-bottom: 2.5rem; }
.widget-title { font-family: var(--font-title); font-size: 1.3rem; color: var(--primary-color); padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 2px solid var(--border-color); }
.category-list { list-style: none; padding: 0; } .category-list li { margin-bottom: 0.8rem; }
.category-list a { color: var(--text-color); font-weight: 500; transition: all 0.3s; display: block; }
.category-list a:hover, .category-list a.active { color: var(--secondary-color); padding-left: 10px; font-weight: 700; }
.filter-select { width: 100%; padding: 10px; font-family: var(--font-body); font-size: 1rem; border: 1px solid var(--border-color); border-radius: 5px; }
.product-count { color: #9ca3af; margin-bottom: 1.5rem; }
.shop-main .product-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }

/* 6. PARTIALS & COMPOSANTS */
.page-header { background-color: var(--primary-color); color: #fff; padding: 4rem 0; text-align: center; margin-top: 85px; /* Dégage l'espace pour le header fixe */ }
.page-header h1 { color: #fff; font-size: 3rem; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.1rem; opacity: 0.8; }
.product-card { background-color: #fff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.product-card__image-link figure { margin: 0; } .product-card__image-link img { width: 100%; height: 220px; object-fit: cover; display: block; }
.product-card__content { padding: 1.5rem; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.product-card__title { font-size: 1.3rem; margin-bottom: 0.5rem; } .product-card__title a { color: var(--text-color); transition: color 0.3s; }
.product-card__title a:hover { color: var(--secondary-color); }
.product-card__price { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 1rem; }
.product-card__form { margin-top: auto; }
.product-card__form .button { width: 100%; font-size: 0.9rem; padding: 12px 20px; }
.product-card__form .button i { margin-right: 0.5rem; }
.empty-state { text-align: center; padding: 4rem 1rem; background-color: var(--light-bg-color); border: 2px dashed var(--border-color); border-radius: 8px; margin: 2rem 0; }
.empty-state__icon { font-size: 4rem; color: var(--border-color); margin-bottom: 1.5rem; }
.empty-state__message { font-size: 1.2rem; color: var(--text-color); margin-bottom: 2rem; font-weight: 500; }

/* 7. FOOTER */
.main-footer { background-color: #1c2b20; color: #a0aec0; padding: 80px 0 30px 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid #3a4a3f; }
.footer-column h3, .footer-column h4 { font-family: var(--font-title); color: #fff; margin-bottom: 1.5rem; }
.social-links { margin-top: 1.5rem; display: flex; gap: 1rem; }
.social-links a { color: #fff; font-size: 1rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #4a5a4f; border-radius: 50%; transition: all 0.3s; }
.social-links a:hover { background-color: var(--secondary-color); border-color: var(--secondary-color); }
.footer-links ul { list-style: none; padding: 0; } .footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #a0aec0; transition: all 0.3s; } .footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-contact p { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.footer-contact i { color: var(--secondary-color); }
.footer-bottom { text-align: center; padding-top: 2rem; font-size: 0.9rem; }

/* 8. ALERTES DYNAMIQUES */
.dynamic-alert { position: fixed; top: 100px; right: 20px; padding: 1rem 1.5rem; border-radius: 8px; color: #fff; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.2); animation: slideInRight 0.5s ease-out; }
.dynamic-alert.alert-success { background-color: #2f855a; }
.dynamic-alert.alert-error { background-color: #c53030; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
/* Fichier : public/css/style.css */
/* ... (tous vos styles précédents) ... */

/* 10. PAGE CONTACT (Correction et Amélioration) */
.contact-section .container {
    max-width: 1000px; /* On peut réduire un peu le conteneur pour la page contact */
}
.contact-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; /* 2/3 pour le formulaire, 1/3 pour les infos */
    gap: 3rem; 
    background: #fff;
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.contact-form-wrapper h3, .contact-info-wrapper h3 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(243, 168, 71, 0.2); outline: none; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
.contact-info-item i { font-size: 1.5rem; color: var(--secondary-color); margin-top: 5px; }
.contact-info-item h4 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.contact-info-item p { margin: 0; line-height: 1.5; color: #6b7280; }

/* 11. PAGE PANIER (Correction) */
.cart-section { background-color: var(--light-bg-color); }
.cart-layout { 
    display: grid; 
    grid-template-columns: 2.5fr 1fr; /* On donne plus de place aux articles */
    gap: 2rem; 
    align-items: flex-start; 
}
/* ... (le reste des styles du panier que vous avez déjà devrait être correct) ... */
/* 13. PAGE ENTREPRISE & ACTIVITÉS */
.company-section { background-color: #fff; }
.company-container { display: flex; align-items: center; gap: 4rem; }
.company-text { flex: 1.2; }
.company-image { flex: 1; }
.company-image img { width: 100%; border-radius: 8px; }
.company-text h2 { text-align: left; font-size: 2.5rem; }

.values-section { background-color: var(--light-bg-color); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-card { text-align: center; }
.value-card i { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1.5rem; }
.value-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.activity-block { padding: 80px 0; border-bottom: 1px solid var(--border-color); }
.activity-block:last-child { border-bottom: none; }
.activity-block.alt-layout { background-color: var(--light-bg-color); }
.activity-container { display: flex; align-items: center; gap: 4rem; }
.activity-image { flex: 1; }
.activity-image img { width: 100%; border-radius: 8px; }
.activity-text { flex: 1.2; }
.activity-text h2 { text-align: left; font-size: 2.5rem; }
/* Inverser l'ordre pour la disposition alternée */
.activity-block.alt-layout .activity-container { flex-direction: row-reverse; }
/* Fichier: public/css/style.css */
/* ... (tous vos styles précédents) ... */

/* 14. PAGE D'AUTHENTIFICATION CLIENT */
.auth-section {
    background-color: var(--light-bg-color);
    padding: 80px 0;
}
.auth-box {
    max-width: 450px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}
.auth-box h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.auth-box p {
    margin-bottom: 2rem;
    color: #6b7280;
}
.auth-form {
    text-align: left;
}
.auth-form .form-group {
    margin-bottom: 1.5rem;
}
.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}
.auth-form .button {
    width: 100%;
}
.auth-switch {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
/* 15. ESPACE CLIENT (ACCOUNT) */
.account-section {
    background-color: var(--light-bg-color);
}
.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: flex-start;
}
.account-sidebar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}
.account-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.account-sidebar li a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s;
}
.account-sidebar li.active a, .account-sidebar li a:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.account-content {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
}
.account-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
/* Fichier: public/css/style.css */
/* ... (tous vos styles précédents) ... */

/* 16. PAGE DE COMMANDE (CHECKOUT) */
.checkout-section {
    background-color: var(--light-bg-color);
}
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}
.checkout-details, .checkout-summary {
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.checkout-details h3, .checkout-summary h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.checkout-form .form-group {
    margin-bottom: 1.5rem;
}
.checkout-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.checkout-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
}
.checkout-summary .summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.checkout-summary .summary-line.total {
    font-weight: 700;
    font-size: 1.2rem;
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}
/* Fichier: public/css/style.css */
/* ... */

/* LIEN D'ACCÈS RAPIDE POUR L'ACCESSIBILITÉ */
.skip-to-content-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -9999;
}
.skip-to-content-link:focus, .skip-to-content-link:active {
    color: var(--primary-color);
    background-color: #fff;
    position: static;
    width: auto;
    height: auto;
    padding: 1rem;
    border: 2px solid var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
}
/* Fichier: public/css/style.css */
/* ... */

/* 16. PAGE DE COMMANDE (CHECKOUT) - AJOUTS */
.checkout-info {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--light-bg-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 2rem;
}
.checkout-info i {
    color: var(--primary-color);
    margin-top: 4px;
}
.checkout-summary .summary-items {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.checkout-summary .summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.checkout-summary .summary-item .item-name {
    color: var(--text-color);
}
.checkout-summary .summary-item .item-price {
    font-weight: 500;
}
.checkout-summary .summary-line.total strong {
    color: var(--primary-color);
}