/* Variables et reset */
:root {
    --orange: rgb(249, 145, 27);
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #666666;
    --gray-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Correction du logo */
.logo {
    max-width: 150px; /* Ajustez cette valeur selon vos besoins */
}

.logo h1 {
    color: var(--orange);
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Si votre logo est une image */
.logo img {
    max-height: 90px; /* Hauteur maximale du logo */
    width: auto;
    object-fit: contain;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    padding-top: 70px;
}

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

/* Header corrigé */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 110px;
    margin: 0 ;
    padding: 0 ;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
    height: 100%;
}

.logo h1 {
    color: var(--orange);
    font-size: 1.5rem; /* Taille réduite */
    font-weight: bold;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--orange);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gray-dark);
    margin: 3px 0;
    transition: 0.3s;
}
/* HERO PRINCIPAL - Version professionnelle */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    margin-top: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* GALERIE D'ARRIÈRE-PLAN - Plus subtile */
.horizontal-scroll-gallery {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
    transform: translateY(-50%);
    overflow: hidden;
    z-index: 1;
    opacity: 0.4; /* Réduit la dominance visuelle */
}

.scroll-track {
    display: flex;
    white-space: nowrap;
    animation: horizontal-scroll 40s linear infinite;
    gap: 2rem;
    padding: 0 2rem;
}

.scroll-track img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    filter: brightness(0.95);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.scroll-track img:hover {
    transform: scale(1.03);
    filter: brightness(1);
}

/* CONTENU PRINCIPAL - Plus épuré */
.hero-content {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    padding: 3rem 4rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    max-width: 650px;
    margin: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #4a5568;
    line-height: 1.6;
    font-weight: 400;
}

/* CTA - Bouton professionnel */
.cta-button {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* OVERLAY - Très subtil */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0.3) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.3) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* ANIMATION - Plus fluide */
@keyframes horizontal-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* HERO SECONDARY - Pour les autres pages */
.hero-about {
    height: 40vh;
    min-height: 300px;
    margin-top: 0 !important;
}

.hero-about .horizontal-scroll-gallery {
    height: 60%;
    opacity: 0.3;
}

.hero-about .scroll-track img {
    width: 200px;
    height: 150px;
}

.hero-about .hero-content {
    padding: 2rem 3rem;
    max-width: 500px;
}

.hero-about .hero-content h1 {
    font-size: 2.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .scroll-track img {
        width: 200px;
        height: 250px;
    }
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--gray-dark);
    border: 2px solid var(--gray-dark);
}

.btn-secondary:hover {
    background-color: var(--gray-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
}

.btn-outline:hover {
    background-color: var(--orange);
    color: var(--white);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gray-dark);
}


/* Services - Fond corrigé */
.services-section {
    background: var(--white); /* Remplace le dégradé mauve */
    /* Ou si vous préférez un gris très léger : */
    /* background: var(--gray-light); */
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}
.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Ombre plus subtile */
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0; /* Bordure légère optionnelle */
    text-decoration: none;
    color: inherit;
}

.service-card:visited {
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-decoration: none;
    color: inherit;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
    font-weight: bold;
}

.service-card p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Produits */

/* Uniformisation parfaite des images des cartes */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}
.pill {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    background: var(--gray-light, #f5f6fa);
    color: var(--gray-dark, #2f3640);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pill:hover {
    background: #e1e5ee;
}

.pill.active {
    background: var(--orange, #f39c12); /* J'utilise ta variable --orange (ou un fallback hexadécimal) */
    color: white;
    /* On met une légère ombre orange pour faire ressortir le bouton */
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3); 
}

.results-count {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.75rem;
}

/* Formatage des caractéristiques parsées */
.product-characteristics ul {
    color: #555;
    font-size: 0.85rem;
    border-left: 3px solid var(--orange, #f39c12); /* La fameuse bande passe en orange ! */
    padding-left: 0.75rem !important;
    background: #fafafa;
    border-radius: 0 5px 5px 0;
}
.product-card:hover .product-image img {
    transform: scale(1.05); /* Petit effet zoom au survol très pro */
}

.products-section {
    margin-bottom: 50px;
}

.products-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
}

.products-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: auto;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 220px;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.product-caution {
    color: var(--gray);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.testimonial-author {
    border-top: 1px solid var(--gray-light);
    padding-top: 1rem;
}

.testimonial-author strong {
    color: var(--gray-dark);
}

.testimonial-author span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Quick Contact */
.quick-contact {
    background-color: var(--orange);
    color: var(--white);
    text-align: center;
}

.quick-contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.quick-contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--orange);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid var(--gray);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
}

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

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--gray-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
}

/* Flash messages */
.flash-messages {
    margin-top: 80px;
}

.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: center;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Admin */
.admin-container {
    margin-top: 100px;
    padding: 2rem;
}

.admin-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.admin-tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
}

.admin-tab.active {
    border-bottom: 3px solid var(--orange);
    color: var(--orange);
    font-weight: bold;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

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

.admin-table th {
    background-color: var(--gray-light);
    font-weight: bold;
}

.admin-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-treated {
    background-color: #d4edda;
    color: #155724;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--gray-light);
}

.login-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray-dark);
}

/* Filtres */
.filters-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 0;
}

/* Filtres en "Pilules" (Pills) */
.filters-section {
    background: white;
    position: sticky;
    top: 110px;
    z-index: 90;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    padding: 0.6rem 0;
}

.filters-select:focus {
    outline: none;
    border-color: var(--orange);
}

.filters-label {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Badges */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.badge-success {
    background: #2ecc71;
    color: white;
}

.badge-danger {
    background: #e74c3c;
    color: white;
}

/* Features produit */
.product-features {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.product-features strong {
    color: var(--gray-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Pricing info (location) */
.pricing-info {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item .label {
    color: var(--gray);
    font-weight: 500;
}

.price-item .value {
    color: var(--orange);
    font-weight: bold;
    font-size: 1.1rem;
}

.caution-info {
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    border-top: 2px solid var(--orange) !important;
}
.category-pills {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Firefox */
}
.category-pills::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    color: var(--gray-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-pill:hover {
    background: #fff3e0;
    border-color: var(--orange);
    color: var(--orange);
}

.category-pill.active {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
    box-shadow: 0 2px 8px rgba(249, 145, 27, 0.3);
}

.filters-bar-label {
    display: block;
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}
/* Info grid (location) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.info-item {
    text-align: center;
}

.info-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.info-item h4 {
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--gray);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav.active ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

/* Filters Select */
.filters-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filters-label {
    font-weight: bold;
    color: var(--gray-dark);
}

@media (max-width: 768px) {
    .filters-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    #categorie-select {
        width: 100% !important;
    }
}

/* Navigation Dropdown */
.nav .dropdown {
    position: relative;
}

.nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 0.5rem 0;
    flex-direction: column;
    gap: 0;
}

.nav .dropdown:hover .dropdown-menu {
    display: flex;
}

.nav .dropdown-menu li {
    width: 100%;
}

.nav .dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: var(--gray-dark);
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    font-weight: normal;
}

.nav .dropdown-menu li:last-child a {
    border-bottom: none;
}

.nav .dropdown-menu a:hover {
    background-color: var(--gray-light);
    color: var(--orange);
}

@media (max-width: 768px) {
    .nav .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: transparent;
        padding-left: 1rem;
        display: none; /* Cache par defaut sur mobile, modifiable via JS si on veut un accordeon */
    }
    
    .nav .dropdown:hover .dropdown-menu {
        display: flex;
    }
}