/**
 * Liste des entreprises/artisans
 * Les Artisans Bressans
 */

/* ============================================================
   HERO SECTION
   ============================================================ */

.entreprises-hero {
    position: relative;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
}

.entreprises-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.entreprises-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entreprises-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(23, 89, 108, 0.3) 0%,
        rgba(23, 89, 108, 0.6) 100%
    );
}

.entreprises-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 1rem;
}

.entreprises-hero h1 {
    font-family: var(--font-bold);
    font-size: 3rem;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.entreprises-hero__metier {
    display: block;
    color: white;
}

.entreprises-hero__ville {
    display: block;
    font-size: 1.8rem;
    color: white;
}

.entreprises-hero__subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.entreprises-hero__description {
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb dans le hero */
.entreprises-hero .breadcrumb {
    margin-bottom: 1.5rem;
}

.entreprises-hero .breadcrumb ol {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.entreprises-hero .breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.entreprises-hero .breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    opacity: 0.7;
}

.entreprises-hero .breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.entreprises-hero .breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.entreprises-hero .breadcrumb [aria-current="page"] {
    opacity: 1;
    font-weight: bold;
}

/* ============================================================
   ARTISANS SECTION
   ============================================================ */

.artisans-section {
    padding: 3rem 1rem;
    background-color: var(--color-primary);
    min-height: 50vh;
}

.artisans-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.artisans-count {
    text-align: center;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 2rem;
}

.artisans-count strong {
    font-size: 1.3rem;
    color: var(--color-secondary);
}

/* ============================================================
   GRILLE DES ARTISANS
   ============================================================ */

.artisans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* ============================================================
   CARTE ARTISAN
   ============================================================ */

.artisan-card {
    background-color: var(--color-primary-light);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.artisan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Photo */
.artisan-card__photo {
    height: 180px;
    background-color: var(--color-primary-light);
    overflow: hidden;
}

.artisan-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artisan-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.artisan-card__placeholder span {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    opacity: 0.8;
}

/* Contenu */
.artisan-card__content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.artisan-card__company {
    font-family: var(--font-book);
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.artisan-card__name {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.5rem 0;
}

/* Avis */
.artisan-card__reviews {
    font-family: var(--font-book);
    font-size: 0.85rem;
    color: var(--color-orange);
    font-weight: bold;
    margin: 0 0 1rem 0;
}

/* Compétences */
.artisan-card__skills {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    flex: 1;
}

.artisan-card__skills li {
    font-size: 0.9rem;
    color: white;
    padding: 0.25rem 0;
    display: flex;
    align-items: flex-start;
}

.skill-bullet {
    color: var(--color-secondary);
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    line-height: 1;
}

/* Localisation */
.artisan-card__location {
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.location-icon {
    margin-right: 0.4rem;
    font-size: 1rem;
}

/* Activité */
.artisan-card__activity {
    font-family: var(--font-book);
    font-size: 0.9rem;
    color: var(--color-secondary);
    font-weight: bold;
    margin: 0.75rem 0 0 0;
}

/* Description */
.artisan-card__description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
    font-style: italic;
}

/* Card cliquable (lien) */
a.artisan-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

a.artisan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

a.artisan-card article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* CTA */
.artisan-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--color-success);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

a.artisan-card:hover .artisan-card__cta {
    background-color: #a2c230;
}

.cta-arrow {
    transition: transform 0.2s ease;
}

a.artisan-card:hover .cta-arrow {
    transform: translateX(4px);
}

/* ============================================================
   AUCUN ARTISAN
   ============================================================ */

.no-artisans {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--color-primary-light);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.no-artisans__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-artisans h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0 0 1rem 0;
}

.no-artisans p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2rem 0;
}

.no-artisans__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ============================================================
   SEO CONTENT SECTION
   ============================================================ */

.seo-content {
    background-color: var(--color-primary-light);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.seo-content h2 {
    font-family: var(--font-bold);
    font-size: 1.4rem;
    color: white;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-secondary);
}

.seo-content__text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.seo-content__text p {
    margin: 0 0 1rem 0;
}

.seo-content__text p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   NAVIGATION LINKS
   ============================================================ */

.navigation-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.contact-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.contact-section p {
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn--outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Override btn--secondary sur fond bleu */
.navigation-links .btn--secondary {
    background-color: var(--color-secondary);
    color: white;
}

.navigation-links .btn--secondary:hover {
    background-color: #4ab8cf;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablette */
@media (max-width: 768px) {
    .entreprises-hero {
        padding: 2rem 1rem;
    }

    .entreprises-hero__metier {
        font-size: 2rem;
    }

    .entreprises-hero__ville {
        font-size: 1.2rem;
    }

    .artisans-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .seo-content {
        padding: 1.5rem;
    }

    .seo-content h2 {
        font-size: 1.2rem;
    }

    .seo-content__text {
        text-align: left;
    }

    .navigation-links {
        flex-direction: column;
        align-items: center;
    }

    .navigation-links .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .entreprises-hero {
        padding: 1.5rem 1rem;
    }

    .entreprises-hero__metier {
        font-size: 1.5rem;
    }

    .entreprises-hero__ville {
        font-size: 1rem;
    }

    .entreprises-hero .breadcrumb {
        font-size: 0.8rem;
    }

    .artisans-grid {
        grid-template-columns: 1fr;
    }

    .artisan-card__photo {
        height: 150px;
    }

    .no-artisans__actions {
        flex-direction: column;
    }

    .no-artisans__actions .btn {
        width: 100%;
    }
}
