/* ============================================
   BOAT MODELS GRID - Modern Design
   ============================================ */

/* ============================================
   HEADER SECTION
   ============================================ */
.section_bandeau {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
    padding: 0 !important;
    background: url('https://yachtsecure.com/wp-content/uploads/2026/01/shipyard-yachtsecure-scaled.webp') no-repeat center center / cover;
    overflow: hidden;
}

.section_bandeau::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 59, 95, 0.75);
    z-index: 1;
}

.section_bandeau .row {
    position: relative;
    z-index: 2;
    width: 100%;
}

.section_bandeau h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 48px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* ============================================
   DESCRIPTION SECTION
   ============================================ */
.section_description_modeles {
    padding-top: 60px;
    background: #f8f9fa;
}

.section_description_modeles .bloc_photo {
    text-align: center;
    margin-bottom: 40px;
}

.section_description_modeles .bloc_photo img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section_description_modeles .bloc_commentaire {
    margin-bottom: 50px;
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* ============================================
   MODELS GRID SECTION
   ============================================ */
.models-grid-container {
    margin-top: 60px;
}

.models-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.models-grid-title {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1b3b5f;
    margin: 0;
}

.models-grid-title .count {
    font-weight: 400;
    color: #6c757d;
}

.models-search-box {
    position: relative;
    flex: 0 0 300px;
}

.models-search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    /* Adjusted padding: Right has more space for icon */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.models-search-input:focus {
    outline: none;
    border-color: #1b3b5f;
    box-shadow: 0 0 0 3px rgba(27, 59, 95, 0.1);
}

.models-search-icon {
    position: absolute;
    right: 15px;
    /* Icon on right */
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
    /* Ensure clicks pass through to input if needed, though mostly visual */
}

/* Alphabet Filter Tabs */
.models-alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
}

.alphabet-tab {
    padding: 8px 14px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alphabet-tab:hover {
    border-color: #1b3b5f;
    color: #1b3b5f;
    background: #f8f9fa;
}

.alphabet-tab.active {
    background: #1b3b5f;
    color: #fff;
    border-color: #1b3b5f;
}

/* Grid Layout */
/* Grid Layout - Reduced minimum width for more cards per row */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.model-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    /* Slightly reduced radius */
    padding: 15px 10px;
    /* Reduced padding */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    /* Reduced min-height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ... existing styles ... */

.model-card-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    /* Reduced font size */
    font-weight: 700;
    color: #1b3b5f;
    margin: 0;
    transition: color 0.3s ease;
}

/* ... existing styles ... */

.model-card-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    /* Reduced font size */
    color: #6c757d;
    margin: 4px 0 0 0;
}

/* ============================================
   MODEL DETAILS PANEL
   ============================================ */
.model-details-panel {
    background: #fff;
    border: 3px solid #d4af37;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);

    /* Force spanning all columns */
    grid-column: 1 / -1 !important;
    width: 100%;

    /* Animation states */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.model-details-panel.active {
    opacity: 1;
    max-height: 2000px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

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

.model-details-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1b3b5f;
    margin: 0;
}

.model-details-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.model-details-close:hover {
    color: #1b3b5f;
}

.model-details-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.model-spec-item {
    display: flex;
    flex-direction: column;
}

.model-spec-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.model-spec-value {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1b3b5f;
}

/* Insight Section */
.model-insight-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.model-insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.model-insight-icon {
    width: 40px;
    height: 40px;
    background: #1b3b5f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.model-insight-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.model-insight-titles {
    flex: 1;
}

.model-insight-main-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    margin: 0;
}

.model-insight-sub-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1b3b5f;
    margin: 4px 0 0 0;
}

.model-insight-content {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #495057;
    font-style: italic;
}

/* Quote Button */
.model-quote-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #1b3b5f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.model-quote-button:hover {
    background: #152e4a;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(27, 59, 95, 0.3);
}

.model-quote-button-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.model-quote-button:hover .model-quote-button-arrow {
    transform: translateX(4px);
}

.model-quote-button-container {
    text-align: center;
}

/* No Results Message */
.models-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

/* Loading State */
.models-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-family: 'Inter', sans-serif;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .section_bandeau h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .section_bandeau {
        height: 250px;
    }

    .section_bandeau h1 {
        font-size: 32px;
    }

    .models-grid-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .models-search-box {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        /* Smaller on tablet */
        gap: 10px;
    }

    .model-details-specs {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .alphabet-tab {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    /* Mobile: Force 3 columns */
    .models-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        /* Tighter gap */
    }

    .section_bandeau h1 {
        font-size: 24px;
    }

    .model-card {
        padding: 10px 5px;
        /* Minimal padding */
        min-height: 60px;
    }

    .model-card-name {
        font-size: 11px;
        /* Small font for mobile */
    }

    .model-card-subtitle {
        font-size: 10px;
        display: none;
        /* Optional: hide subtitle to save space if needed, or keep small */
    }
}

/* ============================================
   NEWS AGGREGATOR SECTION
   ============================================ */
.news-aggregator-section {
    padding: 80px 0;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.news-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-section-line {
    width: 60px;
    height: 3px;
    background-color: #d4af37;
    margin: 0 auto 20px;
}

.news-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1b3b5f;
    margin: 0;
    letter-spacing: 0.5px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.news-card {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
}

.news-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #1b3b5f;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-aggregator-section {
        padding: 50px 0;
    }
}