/**
 * Styles pour les pages Matière
 * 
 * @package ALMetallerie
 * @since 1.0.0
 */

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

.single-matiere {
    background: var(--color-background);
}

.matiere-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 80px;
}

.matiere-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.matiere-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.matiere-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.matiere-breadcrumb a:hover {
    color: #F08B18;
}

.matiere-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
}

.matiere-breadcrumb .current {
    color: #F08B18;
    font-weight: 500;
}

.matiere-hero__label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #F08B18;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.matiere-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.matiere-hero__intro {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.matiere-hero__stats {
    display: flex;
    gap: 3rem;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #F08B18;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   PROPERTIES SECTION
   ============================================ */

.matiere-properties {
    padding: 5rem 0;
    background: var(--color-background-light);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.properties-card {
    background: rgba(34, 34, 34, 0.95);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(240, 139, 24, 0.2);
    transition: all 0.3s ease;
}

.properties-card:hover {
    border-color: #F08B18;
    box-shadow: 0 10px 40px rgba(240, 139, 24, 0.15);
    transform: translateY(-5px);
}

.properties-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 139, 24, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: #F08B18;
}

.properties-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.properties-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.properties-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.properties-list li:last-child {
    border-bottom: none;
}

.properties-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* ============================================
   APPLICATIONS SECTION
   ============================================ */

.matiere-applications {
    padding: 5rem 0;
    background: var(--color-background);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3rem;
}

.section-title__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 139, 24, 0.1);
    border-radius: 12px;
    color: #F08B18;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.application-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
}

.application-item:hover {
    background: rgba(240, 139, 24, 0.1);
    border-color: rgba(240, 139, 24, 0.3);
    transform: translateX(5px);
}

.application-icon {
    flex-shrink: 0;
}

.application-name {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

/* ============================================
   REALISATIONS SECTION
   ============================================ */

.matiere-realisations {
    padding: 5rem 0;
    background: var(--color-background-light);
}

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

.realisation-card {
    background: rgba(34, 34, 34, 0.95);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.realisation-card:hover {
    border-color: rgba(240, 139, 24, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.realisation-card__link {
    text-decoration: none;
    display: block;
}

.realisation-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.realisation-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.realisation-card:hover .realisation-card__image img {
    transform: scale(1.05);
}

.realisation-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.realisation-card:hover .realisation-card__overlay {
    opacity: 1;
}

.view-project {
    padding: 0.75rem 1.5rem;
    background: #F08B18;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.9rem;
}

.realisation-card__content {
    padding: 1.5rem;
}

.realisation-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.realisation-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.meta-type {
    color: #F08B18;
    font-weight: 500;
}

.meta-lieu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.realisations-cta {
    display: flex;
    justify-content: center;
}

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

.matiere-content {
    padding: 5rem 0;
    background: var(--color-background);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.matiere-faq {
    padding: 5rem 0;
    background: var(--color-background-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(34, 34, 34, 0.95);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
    border-color: rgba(240, 139, 24, 0.3);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #F08B18;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #F08B18;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.matiere-cta {
    padding: 5rem 0;
    background: var(--color-background);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(240, 139, 24, 0.15) 0%, rgba(240, 139, 24, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(240, 139, 24, 0.3);
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-view-all,
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 2px solid #F08B18;
    border-radius: 50px;
    color: #F08B18;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-view-all .circle,
.cta-button .circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #F08B18;
    border-radius: 50%;
    transition: width 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}

.btn-view-all .button-text,
.cta-button .button-text {
    padding: 0 1.5rem 0 0;
    transition: color 0.3s ease;
}

.btn-view-all:hover,
.cta-button:hover {
    background: #F08B18;
    color: #fff;
}

.btn-view-all:hover .circle,
.cta-button:hover .circle {
    width: 100%;
}

.btn-view-all:hover .button-text,
.cta-button:hover .button-text {
    color: #fff;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .matiere-hero {
        min-height: 50vh;
        padding: 100px 0 60px;
        background-attachment: scroll;
    }
    
    .matiere-hero__stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 0.75rem);
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .realisations-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}
