/* Styles modernes pour l'interface VD86 - Effets Wow */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Conteneur Entreprise du Jour */
.hero-spotlight-container {
    position: relative;
    border-radius: 20px;
    padding: 30px;
    background: #fff;
    margin: 20px auto;
    max-width: 800px;
}

/* Animation d'apparition elegante */
@keyframes spotlightReveal {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.hero-content-revealed {
    animation: spotlightReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Animation en cascade pour les cartes */
@keyframes staggerFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.stagger-card:nth-child(1) { animation-delay: 0.1s; }
.stagger-card:nth-child(2) { animation-delay: 0.2s; }
.stagger-card:nth-child(3) { animation-delay: 0.3s; }
.stagger-card:nth-child(4) { animation-delay: 0.4s; }

.stagger-card {
    opacity: 0;
    animation: staggerFadeIn 0.6s ease-out forwards;
}

/* Badge Offre Spéciale */
.badge-offre-speciale {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #40752d;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.company-card.has-offer {
    border: 2px solid #ffd700;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
}

/* Compte à rebours exclusivité */
.exclusivity-timer {
    background: linear-gradient(135deg, #40752d 0%, #88be41 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.exclusivity-timer i {
    font-size: 1.1rem;
}

.timer-text {
    font-weight: 600;
}

/* Animation de notification améliorée */
@keyframes slideInRight {
    from { transform: translateX(150%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #40752d 0%, #88be41 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(64, 117, 45, 0.3);
    transform: translateX(150%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Effet de survol amélioré pour les cartes */
.company-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.company-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(64, 117, 45, 0.2);
}

/* Section Hero améliorée */
.hero {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #40752d, #88be41, #ffd700, #88be41, #40752d);
    animation: gradientShift 3s ease infinite;
    background-size: 200% 100%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h1 {
    color: #40752d;
    margin-bottom: 15px;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(64, 117, 45, 0.1);
}

.hero p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 25px;
}

/* Section Entreprise du Jour */
.random-company-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border-left: 5px solid #88be41;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.random-company-label {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #40752d;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Section 4 entreprises */
.four-companies-section {
    background: linear-gradient(135deg, #fff9e6 0%, #f0f8ff 100%);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border-left: 5px solid #ffd700;
}

.four-companies-label {
    display: inline-block;
    background: linear-gradient(135deg, #88be41 0%, #40752d 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Section Autres Entreprises Locales */
.other-companies {
    background: linear-gradient(135deg, #fff9e6 0%, #f0f8ff 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #ffd700;
}

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

/* Header - Maximum Wow Desktop Version */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fixed-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0 0 20px 20px;
    padding: 2px;
    background: linear-gradient(135deg, #ffd700, #88be41, #40752d, #88be41, #ffd700);
    background-size: 400% 400%;
    animation: gradientBorder 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fixed-header.scrolled {
    padding: 8px 0;
    box-shadow: 0 10px 40px rgba(45, 80, 25, 0.4);
}

.header-bg {
    position: absolute;
    inset: 0;
    background: rgba(45, 80, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 20px 20px;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.header-title { 
    padding-right: 50px;
    color: #ffd700;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-title span {
    color: #ffd700;
    position: relative;
}

.header-title span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before {
    width: 70%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2d5019;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.nav-link i {
    font-size: 1rem;
}

/* Floating decorative elements */
.header-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: 0 0 20px 20px;
}

.float-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatOrb 8s ease-in-out infinite;
}

.float-orb-1 {
    width: 120px;
    height: 120px;
    background: #ffd700;
    top: -30px;
    left: -20px;
    animation-delay: 0s;
}

.float-orb-2 {
    width: 80px;
    height: 80px;
    background: #88be41;
    bottom: -20px;
    right: 10%;
    animation-delay: 2s;
}

.float-orb-3 {
    width: 60px;
    height: 60px;
    background: #ffd700;
    top: 20%;
    right: -10px;
    animation-delay: 4s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -15px) scale(1.1); }
    50% { transform: translate(-5px, 10px) scale(0.95); }
    75% { transform: translate(15px, 5px) scale(1.05); }
}

/* Gold accent line */
.header-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), transparent);
}

/* Intro Section - Desktop */
.intro-section {
    padding: 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,249,230,0.8) 0%, rgba(240,248,255,0.9) 100%), url('../img/groupe.webp');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #88be41;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.intro-content {
    max-width: 700px;
    margin: 0 auto;
}

.intro-icon {
    font-size: 2.5rem;
    color: #40752d;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.intro-section p {
    font-size: 1.0rem;
    color: #444;
    line-height: 1.8;
    margin: 0;
}

.intro-section strong {
    color: #40752d;
    font-weight: 700;
}

/* Main content with padding for fixed header */
.main-content {
    padding-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Hero Section */
.hero h1 {
    color: #40752d;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.hero p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 25px;
}

.random-company {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border-left: 5px solid #88be41;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.company-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    min-height: 480px;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Bouton Voir Plus */
.btn-voir-plus {
    background: linear-gradient(135deg, #88be41 0%, #40752d 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto; /* Pousse le bouton en bas */
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-voir-plus:hover {
    background: linear-gradient(135deg, #40752d 0%, #88be41 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(64, 117, 45, 0.3);
}

/* Description tronquée */
.description-tronquee {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: justify;
}

.description-tronquee::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.description-tronquee.visible {
    display: none;
}

.description-complete {
    display: none;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: justify;
}

.description-complete.visible {
    display: block;
}

/* Section dédiée pour les offres (doit être visible) */
.section-offre-speciale {
    background: #fff9e6;
    border-radius: 8px;
    padding: 10px;
    margin-top: auto; /* Pousse en bas quand visible */
}

.section-offre-speciale a {
    color: #40752d;
    text-decoration: underline;
}

.section-offre-speciale a:hover {
    color: #88be41;
}

/* Pour le hero, pas de troncature */
.hero .company-card .description-tronquee {
    display: block !important;
}

.hero .company-card .btn-voir-plus {
    display: none !important;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #88be41;
    text-align: center;
}

.company-info h2 {
    color: #40752d;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.company-info .category {
    background: #88be41;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.company-info p {
    color: #666;
    margin-bottom: 10px;
}

.company-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    word-break: break-word;
}

.company-contact a {
    color: #40752d;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.company-contact a:hover {
    color: #88be41;
    text-decoration: underline;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    word-break: break-word;
    min-width: 0;
}

.contact-item i {
    color: #88be41;
    font-size: 1.2rem;
}

/* Search Section */
.search-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #88be41;
    box-shadow: 0 0 0 3px rgba(136, 190, 65, 0.2);
}

.search-btn {
    background: #88be41;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: #40752d;
    transform: translateY(-2px);
}

.show-all-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.show-all-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.reset-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-btn:hover {
    background: #e9f7fe;
    border-color: #88be41;
    color: #40752d;
    transform: translateY(-2px);
}

/* Categories Section */
.categories-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.section-title {
    color: #40752d;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.section-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-title-row .section-title {
    margin-bottom: 0;
}

.refresh-btn {
    background: #40752d;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 25%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #88be41;
    transform: rotate(180deg);
}

.refresh-btn i {
    font-size: 1rem;
}

@media (max-width: 340px) {
    .refresh-btn {
        width: 32px;
        height: 32px;
    }
    
    .refresh-btn i {
        font-size: 0.85rem;
    }
}

.filter-offer-row {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-offer-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    font-size: 0.95rem;
}

.filter-offer-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #40752d;
}

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

.category-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7fe 100%);
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #40752d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.category-btn:hover {
    background: linear-gradient(135deg, #88be41 0%, #40752d 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(136, 190, 65, 0.3);
}

.category-btn i {
    font-size: 1.5rem;
}

/* Contact Section */
.contact-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #40752d;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #88be41;
}

.form-success,
.form-error {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-btn {
    background: linear-gradient(135deg, #88be41 0%, #40752d 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(136, 190, 65, 0.4);
}

/* Results Section */
.results-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.company-logo i {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.contact-item a {
    color: #88be41;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

.no-results p {
    margin: 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #40752d 0%, #88be41 100%);
    color: white;
    text-align: center;
    padding: 25px 0;
    border-radius: 20px 20px 0 0;
    margin-top: 30px;
}

/* Responsive Design - Tablette */
@media (max-width: 1024px) {
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 769px) {
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-nav {
        display: none !important;
    }
    
    .desktop-footer {
        display: block;
    }
    
    .fixed-header {
        display: flex !important;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    /* Hide header on mobile completely */
    .fixed-header {
        display: none !important;
    }
    
    /* Full width sections on mobile */
    .main-content {
        padding: 0;
        padding-bottom: 80px;
    }
    
    /* Intro Section */
    .intro-section {
        padding: 25px 20px;
        text-align: center;
    }
    
    .intro-icon {
        font-size: 2rem !important;
    }
    
    .intro-section p {
        font-size: 1rem;
        color: #555;
        line-height: 1.6;
        margin: 0;
    }
    
    /* Mobile Header */
    .mobile-header {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
        background: linear-gradient(135deg, #2d5019 0%, #40752d 50%, #88be41 100%);
        color: white;
        position: relative;
    }
    
    .mobile-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #40752d, #88be41, #ffd700, #88be41, #40752d);
    }
    
    .mobile-logo {
        height: 60px;
        width: auto;
        border-radius: 8px;
    }
    
    .mobile-title h1 {
        font-size: 1.2rem;
        margin: 0;
        font-weight: 700;
    }
    
    .mobile-title p {
        font-size: 0.8rem;
        margin: 0;
        opacity: 0.9;
    }
    
    .hero {
        padding: 20px;
        margin: 0;
        border-radius: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .other-companies {
        padding: 20px;
        margin: 0;
        border-radius: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    /* Main content padding for bottom nav */
    .main-content {
        padding-bottom: 80px;
    }
    
    /* Hero mobile */
    .hero {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    /* Container entreprise du jour */
    .hero-spotlight-container {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    /* Search mobile */
    .search-section {
        padding: 20px 15px;
    }
    
    .search-input,
    .search-btn {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    /* Categories - 2x2 grid */
    .categories-section {
        padding: 20px 15px;
    }
    
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-btn {
        padding: 15px 10px;
        font-size: 0.8rem;
    }
    
    .category-btn i {
        font-size: 1.2rem !important;
        margin-bottom: 5px;
    }
    
    /* Entreprises grid */
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .company-card {
        padding: 15px;
        margin: 10px 0;
        min-height: auto;
    }
    
    .company-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .company-logo img {
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    .company-info h2 {
        font-size: 1rem;
    }
    
    .category {
        font-size: 0.75rem;
    }
    
    /* Description */
    .description-tronquee,
    .description-complete {
        font-size: 0.85rem;
    }
    
    /* Contact */
    .contact-section {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Bottom Navigation */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        /* background: rgba(255, 255, 255, 0.434); */
        background: rgb(127 206 24 / 41%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 8px 0;
        justify-content: space-around;
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666;
        padding: 8px 15px;
        font-size: 0.7rem;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .bottom-nav-item i {
        font-size: 1.3rem;
        margin-bottom: 3px;
    }
    
    .bottom-nav-item.active {
        color: #40752d;
    }
    
    .bottom-nav-item:active {
        transform: scale(0.95);
    }
}

/* Desktop - hide bottom nav */
@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
    
    .desktop-footer {
        display: block;
    }
    
    .mobile-header {
        display: none;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.6s ease-out;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 30px;
}

footer p {
    margin: 5px 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    footer {
        padding: 15px;
        font-size: 0.8rem;
    }
}

/* Maximum Wow Footer */
.desktop-footer {
    position: relative;
    background: transparent;
    margin-top: 50px;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    inset: 0;
    background: rgba(45, 80, 25, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.footer-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.float-orb-4 {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 50%;
    bottom: -50px;
    left: -30px;
    animation: floatOrb 10s ease-in-out infinite;
}

.float-orb-5 {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(136, 190, 65, 0.1);
    border-radius: 50%;
    top: -30px;
    right: 10%;
    animation: floatOrb 12s ease-in-out infinite reverse;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px 30px;
}

.footer-column {
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
}

.footer-column h3 {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, transparent);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 8px 0;
}

.footer-column a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: #ffd700;
    transform: translateX(8px);
}

.footer-column a i {
    width: 20px;
    text-align: center;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.footer-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #88be41, #40752d, #88be41, #ffd700);
    background-size: 400% 400%;
    animation: gradientBorder 4s ease infinite;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px 20px;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column a {
        justify-content: center;
    }
    
    .footer-column a:hover {
        transform: none;
    }
}

@media (max-width: 340px) {
    .company-card {
        max-width: 100%;
        padding: 15px 10px;
        margin: 10px 0;
    }
    
    .company-card * {
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    .company-info h2 {
        font-size: 1rem;
    }
    
    .companies-grid {
        padding: 0 5px;
    }
    
    .footer-content {
        padding: 30px 15px 20px;
        max-width: 100%;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .section-title-row {
        flex-wrap: wrap;
    }
    
    .section-title-row .refresh-btn {
        margin-left: auto;
        margin-right: auto;
        order: 2;
        width: 100%;
        max-width: 50px;
        margin-top: 10px;
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #88be41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ADMIN PAGE */

  .login-container {
      max-width: 400px;
      margin: 100px auto;
      padding: 40px;
      background: white;
      border-radius: 20px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
      text-align: center;
  }

  .login-container h1 {
      color: #40752d;
      margin-bottom: 30px;
  }

  .login-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
  }

  .login-form input {
      padding: 15px;
      border: 2px solid #e0e0e0;
      border-radius: 10px;
      font-size: 1rem;
  }

  .login-form input:focus {
      outline: none;
      border-color: #88be41;
  }

  .login-btn {
      background: linear-gradient(135deg, #88be41 0%, #40752d 100%);
      color: white;
      border: none;
      padding: 15px;
      border-radius: 10px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
  }

  .login-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 20px rgba(136, 190, 65, 0.4);
  }

  .error-message {
      color: #dc3545;
      font-size: 0.9rem;
      display: none;
  }

  .admin-container {
      display: none;
      max-width: 1200px;
      margin: 50px auto;
      padding: 20px;
  }

  .admin-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
      padding-bottom: 20px;
      border-bottom: 2px solid #e0e0e0;
  }

  .admin-header h1 {
      color: #40752d;
      margin: 0;
  }

  .logout-btn {
      background: #dc3545;
      color: white;
      border: none;
      padding: 12px 24px;
      border-radius: 10px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s ease;
  }

  .logout-btn:hover {
      background: #c82333;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  }

  .editor-container {
      background: white;
      border-radius: 15px;
      padding: 30px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .site-btn {
      background: #40752d;
      color: white;
      border: none;
      padding: 12px 24px;
      border-radius: 10px;
      cursor: pointer;
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.3s ease;
  }

  .site-btn:hover {
      background: #88be41;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(64, 117, 45, 0.3);
  }

  .top-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
  }

  .top-toolbar-left {
      display: flex;
      gap: 10px;
  }

  .actions-toolbar {
      display: flex;
      gap: 15px;
      margin-bottom: 25px;
      padding: 20px;
      background: white;
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  .editor-toolbar {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
  }

  .edit-toggle-btn {
      background: #ffc107;
      color: #000;
  }

  .edit-toggle-btn:hover {
      filter: brightness(0.9);
  }

  .edit-toggle-btn.unlocked {
      background: #dc3545;
      color: white;
  }

  .edit-toggle-btn.unlocked:hover {
      filter: brightness(1.1);
  }

  .list-filters {
      display: flex;
      gap: 15px;
      margin-bottom: 20px;
      align-items: center;
  }

  .search-input {
      padding: 8px 15px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-size: 0.9rem;
      width: 250px;
  }

  .search-input:focus {
      outline: none;
      border-color: #88be41;
  }

  .filter-checkbox {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
  }

  .filter-checkbox input {
      width: auto;
      cursor: pointer;
  }

  .editor-toolbar button {
      padding: 10px 20px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s ease;
  }

  .add-btn {
      background: #28a745;
      color: white;
      padding: 12px 24px;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s ease;
  }

  .add-btn:hover {
      background: #218838;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  }

  .save-btn {
      background: #40752d;
      color: white;
      padding: 12px 24px;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s ease;
  }

  .save-btn:hover {
      background: #88be41;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(64, 117, 45, 0.3);
  }

  .edit-toggle-btn {
      background: #ffc107;
      color: #000;
      padding: 12px 24px;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s ease;
  }

  .edit-toggle-btn:hover {
      filter: brightness(0.9);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  }

  .edit-toggle-btn.unlocked {
      background: #dc3545;
      color: white;
  }

  .edit-toggle-btn.unlocked:hover {
      filter: brightness(1.1);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  }

  .add-btn:hover {
      background: #218838;
  }

  .save-btn {
      background: #40752d;
      color: white;
  }

  .save-btn:hover {
      background: #88be41;
  }

  .json-editor {
      width: 100%;
      min-height: 500px;
      font-family: 'Courier New', monospace;
      font-size: 14px;
      padding: 20px;
      border: 2px solid #e0e0e0;
      border-radius: 10px;
      resize: vertical;
  }

  .json-editor:focus {
      outline: none;
      border-color: #88be41;
  }

  .status-message {
      padding: 15px;
      border-radius: 8px;
      margin-bottom: 20px;
      display: none;
  }

  .status-message.success {
      background: #d4edda;
      color: #155724;
      display: block;
  }

  .status-message.error {
      background: #f8d7da;
      color: #721c24;
      display: block;
  }

  .company-list {
      margin-top: 30px;
  }

  .company-list h2 {
      color: #40752d;
      margin-bottom: 20px;
  }

  .company-item {
      background: #f8f9fa;
      padding: 15px;
      margin-bottom: 10px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 15px;
  }

  .company-item .company-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      text-align: left;
  }

  .company-item .company-name {
      font-weight: 600;
      color: #40752d;
  }

  .company-item .company-category {
      color: #666;
      font-size: 0.9rem;
  }

  .company-item .company-actions {
      display: flex;
      gap: 10px;
  }

  .company-item .company-actions button {
      padding: 5px 10px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 0.8rem;
  }

  .company-item.disabled {
      background: #e9ecef;
      opacity: 0.7;
  }

  .company-item.disabled .company-name,
  .company-item.disabled .company-category {
      color: #999;
  }

  .company-active-checkbox {
      width: 20px;
      height: 20px;
      cursor: pointer;
      accent-color: #dc3545;
  }

  .company-list-header {
      display: grid;
      grid-template-columns: 40px 1fr 100px;
      gap: 10px;
      padding: 10px 15px;
      background: #e9ecef;
      border-radius: 8px 8px 0 0;
      font-weight: 600;
      color: #40752d;
      font-size: 0.9rem;
  }

  .company-list-header i {
      color: #dc3545;
  }

  .disabled-companies {
      margin-top: 30px;
      padding-top: 20px;
      border-top: 2px dashed #ccc;
  }

  .disabled-companies h2 {
      color: #dc3545;
  }

  .edit-btn {
      background: #ffc107;
      color: #000;
      padding: 8px 14px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      font-size: 0.9rem;
      transition: all 0.3s ease;
  }

  .edit-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
  }

  .delete-btn {
      background: #dc3545;
      color: white;
      padding: 8px 14px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      font-size: 0.9rem;
      transition: all 0.3s ease;
  }

  .delete-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
  }

  /* Edit Form */
  .edit-form-container {
      display: none;
      background: white;
      border-radius: 15px;
      padding: 30px;
      margin-bottom: 30px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .edit-form-container.active {
      display: block;
  }

  .edit-form-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 2px solid #e0e0e0;
  }

  .edit-form-header h2 {
      color: #40752d;
      margin: 0;
  }

  .close-form-btn {
      background: #dc3545;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 5px;
      cursor: pointer;
  }

  .form-row {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      margin-bottom: 15px;
  }

  .form-row.full-width {
      grid-template-columns: 1fr;
  }

  .form-row label {
      display: block;
      font-weight: 600;
      color: #40752d;
      margin-bottom: 5px;
  }

  .form-row input,
  .form-row select,
  .form-row textarea {
      width: 100%;
      padding: 10px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-size: 0.95rem;
      box-sizing: border-box;
  }

  .form-row textarea {
      min-height: 100px;
      resize: vertical;
  }

  .form-row input:focus,
  .form-row select:focus,
  .form-row textarea:focus {
      outline: none;
      border-color: #88be41;
  }

  .checkbox-row {
      display: flex;
      align-items: center;
      gap: 10px;
  }

  .checkbox-row input {
      width: auto;
  }

  .checkbox-row label {
      margin: 0;
      font-weight: normal;
      color: #333;
  }

  .image-upload-container {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }

  .file-input {
      padding: 8px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      background: white;
  }

  .image-preview {
      min-height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f8f8f8;
      border-radius: 8px;
      padding: 10px;
  }

  .image-preview img {
      max-width: 100%;
      height: auto;
  }

  .upload-btn {
      background: #17a2b8;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 8px;
  }

  .upload-btn:hover {
      background: #138496;
  }

  #upload-status {
      font-size: 0.9rem;
      padding: 5px 10px;
      border-radius: 4px;
  }

  #upload-status.success {
      color: #28a745;
      background: #d4edda;
  }

  #upload-status.error {
      color: #dc3545;
      background: #f8d7da;
  }

  .form-actions {
      display: flex;
      gap: 10px;
      margin-top: 20px;
  }

  .update-btn {
      background: #28a745;
      color: white;
      border: none;
      padding: 12px 25px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      flex: 1;
  }

  .cancel-btn {
      background: #6c757d;
      color: white;
      border: none;
      padding: 12px 25px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
  }

  /* Toggle buttons */
  .view-toggle {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
  }

  .view-toggle button {
      padding: 10px 20px;
      border: 2px solid #e0e0e0;
      background: white;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
  }

  .view-toggle button.active {
      border-color: #40752d;
      background: #40752d;
      color: white;
  }

  /* Image Modal */
  .image-modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.9);
      justify-content: center;
      align-items: center;
      flex-direction: column;
  }

  .image-modal .modal-content {
      max-width: 90%;
      max-height: 90%;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  }

  .image-modal .modal-close {
      position: absolute;
      top: 20px;
      right: 30px;
      color: white;
      font-size: 40px;
      font-weight: bold;
      cursor: pointer;
      z-index: 10000;
      transition: color 0.3s;
  }

  .image-modal .modal-close:hover {
      color: #88be41;
  }