/* ═══════════════════════════════════════════════════
   OFFRE AUTOMATISATION — styles spécifiques à la
   page catalogue offre_automatisation.php
   ═══════════════════════════════════════════════════ */

body {
    background: #ffffff;
}

/* ── Page hero ── */
.auto-hero {
    background: #ffffff;
    padding: 120px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auto-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #0066ff;
    opacity: 0.05;
    top: -200px;
    right: -150px;
    pointer-events: none;
}

.auto-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #0066ff;
    opacity: 0.04;
    bottom: -100px;
    left: -80px;
    pointer-events: none;
}

.auto-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

.auto-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4em;
    font-weight: 900;
    color: #1a2f42;
    margin: 0 0 14px;
    line-height: 1.15;
}

.auto-hero h1 span {
    color: #0066ff;
}

.auto-hero p {
    color: #4a5568;
    font-size: 1.05em;
    line-height: 1.75;
    margin: 0 0 32px;
}

/* ── Recherche ── */
.auto-search {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 2px solid #0066ff;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
}

.auto-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95em;
    color: #1a2f42;
    background: transparent;
}

.auto-search input::placeholder {
    color: #a0aec0;
}

.auto-search button {
    border: none;
    background: #0066ff;
    color: #fff;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
    flex-shrink: 0;
}

.auto-search button:hover {
    background: #0050cc;
}

/* ── Barre de filtres ── */
.auto-filters {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.auto-filters-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-block;
    padding: 8px 18px;
    font-family: 'Lato', sans-serif;
    font-size: 0.92em;
    font-weight: 700;
    color: #4a5568;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    border-radius: 50px;
}

.filter-chip:hover {
    border-color: #0066ff;
    color: #0066ff;
}

.filter-chip.active {
    background: #0066ff;
    border-color: #0066ff;
    color: #ffffff;
}

/* ── Résultats header ── */
.auto-results-header {
    max-width: 1200px;
    margin: 40px auto 24px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auto-results-count {
    font-family: 'Outfit', sans-serif;
    font-size: 1em;
    color: #718096;
}

.auto-results-count strong {
    color: #1a2f42;
}

.auto-reset {
    font-size: 0.92em;
    color: #0066ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.auto-reset:hover {
    text-decoration: underline;
}

/* ── Grille de cards ── */
.auto-grid {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Card ── */
.auto-card {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.3);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auto-card:hover {
    border-color: #0066ff;
    box-shadow: 0 4px 24px rgba(0, 102, 255, 0.12);
}

.auto-card-top {
    padding: 24px 24px 0;
}

.auto-card-cat {
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #0066ff;
    margin-bottom: 12px;
}

.auto-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    color: #1a2f42;
    margin: 0 0 12px;
    line-height: 1.35;
}

.auto-card-desc {
    font-size: 0.97em;
    color: #4a5568;
    line-height: 1.75;
    margin: 0;
    flex: 1;
}

.auto-card-tags {
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.auto-card-tag {
    font-size: 0.82em;
    font-weight: 600;
    color: #0066ff;
    background: rgba(0, 102, 255, 0.07);
    border: 1px solid rgba(0, 102, 255, 0.18);
    padding: 5px 12px;
}

.auto-card-footer {
    border-top: 1px solid rgba(0, 102, 255, 0.15);
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auto-card-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95em;
    font-weight: 700;
    color: #0066ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.15s ease;
}

.auto-card-link:hover {
    gap: 10px;
}

.auto-card-link--article {
    font-weight: 500;
    color: #5c7a9f;
    font-size: 0.88em;
}

.auto-card-link--article:hover {
    color: #0066ff;
}

/* ── Voir plus ── */
.auto-card--hidden {
    display: none;
}

.auto-showmore {
    text-align: center;
    margin: -8px auto 60px;
}

.auto-showmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: #ffffff;
    color: #0066ff;
    border: 2px solid #0066ff;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.auto-showmore-btn:hover {
    background: #0066ff;
    color: #ffffff;
}

/* ── État vide ── */
.auto-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: #718096;
}

.auto-empty i {
    font-size: 2.5em;
    color: #e2e8f0;
    display: block;
    margin-bottom: 20px;
}

.auto-empty p {
    font-size: 1.05em;
    margin: 0 0 24px;
}

/* ── CTA bas de page ── */
.auto-cta {
    background: #0a1929;
    padding: 70px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auto-cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #0066ff;
    opacity: 0.10;
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.auto-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.auto-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9em;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
}

.auto-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    line-height: 1.75;
    margin: 0 0 32px;
}

.auto-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #0066ff;
    color: #fff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1em;
    border-radius: 50px;
    transition: background 0.2s ease;
}

.auto-cta-btn:hover {
    background: #0050cc;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .auto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .auto-hero h1 {
        font-size: 1.7em;
    }

    .auto-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .auto-filters-inner {
        padding: 0 16px;
    }

    .auto-results-header {
        padding: 0 16px;
    }

    .auto-search {
        max-width: 100%;
        width: 100%;
    }
}
