/* Styling specific to Marques page */

.page-marques {
    background-color: #f4f5f6;
    color: #111111;
}

.page-marques .header {
    background: transparent;
}

.page-marques .header a {
    color: #111111;
}

.page-marques .header a.btn-contact {
    color: #ffffff;
}

.page-marques .header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.marques-main {
    padding-top: 140px; 
}

/* HERO SECTION */
.marques-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.marques-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 80px;
}

.hero-title-area {
    flex: 1.2;
}

.hero-title-area .subtitle {
    display: block;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0px;
    color: #b0b8bc;
    margin-bottom: 24px;
}

.hero-title-area h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    color: #1a2f33;
    letter-spacing: -2px;
}

.hero-desc-area {
    flex: 1;
    padding-top: 20px; 
}

.hero-desc-area p {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
    color: #4a5d60;
}

/* FILTER SECTION */
.marques-filter {
    background-color: #e6ede8;
    border-radius: 20px;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.filter-text {
    flex: 1.2;
}

.filter-text p {
    font-size: 20px;
    color: #1a2f33;
    line-height: 1.5;
    margin: 0;
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex: 2;
}

.custom-select {
    position: relative;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    flex: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.custom-select select {
    appearance: none;
    background: transparent;
    border: none;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    color: #1a2f33;
    cursor: pointer;
    outline: none;
    padding-right: 40px;
    font-family: 'Outfit', sans-serif;
}

.search-input-wrap input {
    appearance: none;
    background: transparent;
    border: none;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    color: #1a2f33;
    outline: none;
    padding-right: 40px;
    font-family: 'Outfit', sans-serif;
}

.search-input-wrap input::placeholder {
    color: #9aacb0;
    font-weight: 400;
}

.select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #d1e0d8; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.select-icon svg {
    width: 18px;
    height: 18px;
    color: #1a2f33;
}

/* COUNTER */
.marques-counter {
    max-width: 1400px;
    margin: 40px auto 0 auto;
    padding: 0 40px;
    font-size: 15px;
    font-weight: 500;
    color: #9aacb0;
    letter-spacing: 0.5px;
}

.marques-counter span {
    color: #1a2f33;
    font-weight: 600;
}

/* GRID SECTION */
.marques-grid-section {
    max-width: 1400px;
    margin: 20px auto 100px auto;
    padding: 0 40px;
}

.marques-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.marque-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: 1px solid transparent;
}

.marque-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.04);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Category Tag */
.category-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--tag-color, #666);
    background-color: color-mix(in srgb, var(--tag-color, #666) 8%, transparent);
    padding: 6px 14px;
    border-radius: 50px;
    line-height: 1;
}

.external-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a2f33;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    flex-shrink: 0;
}

.marque-card:hover .external-link {
    background-color: #EE1B24;
    color: #ffffff;
    border-color: #EE1B24;
}

.external-link .link-icon {
    width: 18px;
    height: 18px;
}

.card-content {
    margin-top: 24px;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 26px;
    font-weight: 500;
    color: #1a2f33;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.card-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #66787b;
}

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

.platform-url {
    font-size: 13px;
    font-weight: 500;
    color: #9aacb0;
    display: flex;
    align-items: center;
}

.platform-url svg {
    color: #c0cdd0;
}

/* NO RESULTS */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    color: #c0cdd0;
    margin-bottom: 24px;
}

.no-results-icon svg {
    width: 100%;
    height: 100%;
}

.no-results h3 {
    font-size: 24px;
    font-weight: 500;
    color: #1a2f33;
    margin-bottom: 8px;
}

.no-results p {
    font-size: 16px;
    color: #9aacb0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .marques-hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    
    .marques-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 30px;
    }
    
    .filter-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .custom-select {
        width: 100%;
        min-width: unset;
    }

    .marques-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .marques-hero {
        padding: 20px;
    }
    
    .hero-title-area h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }
    
    .marques-filter {
        padding: 24px;
    }
    
    .marques-grid-section {
        padding: 0 20px;
    }
    
    .marques-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .marque-card {
        min-height: auto;
        padding: 28px;
    }

    .marques-counter {
        padding: 0 20px;
    }

    .card-content h3 {
        font-size: 22px;
    }
}

/* ACCESSIBILITY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FAQ SECTION */
.faq-section {
    max-width: 1400px;
    margin: 0 auto 100px auto;
    padding: 0 40px;
}

.faq-container h2 {
    font-size: 42px;
    font-weight: 400;
    color: #1a2f33;
    letter-spacing: -1px;
    margin-bottom: 48px;
    line-height: 1.2;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.faq-item[open] {
    border-color: rgba(238, 27, 36, 0.15);
}

.faq-item summary {
    padding: 28px 32px;
    font-size: 18px;
    font-weight: 500;
    color: #1a2f33;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    line-height: 1.4;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: #9aacb0;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f4f5f6;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    background-color: #EE1B24;
    color: #ffffff;
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 32px 28px 32px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5d60;
}

.faq-answer strong {
    color: #1a2f33;
}

/* Card heading override: use h2 but sized small */
.marque-card .card-content h2 {
    font-size: 26px;
    font-weight: 500;
    color: #1a2f33;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .faq-container h2 {
        font-size: 28px;
    }

    .faq-item summary {
        padding: 22px 24px;
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 24px 22px 24px;
    }

    .faq-section {
        padding: 0 20px;
    }
}
