/* =============================================
   Vegaone Local SEO Deployer — Front CSS
   Design adapté pour vegaone.fr
   ============================================= */

/* Reset */
.ccp-wrap, .ccp-wrap * { box-sizing: border-box; }

.ccp-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.7;
    font-size: 16px;
    margin-top: 30px !important;
    margin-bottom: 0 !important;
}

/* Remove Astra / Elementor top spacing on virtual pages */
.ccp-wrap .ccp-section:first-child {
    margin-top: 0;
}
/* Kill any gap between site header and our content + footer */
.site-content .ast-container,
.site-content .entry-content,
.site-content .ast-article-single,
.site-content article,
#primary,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.ast-separate-container .ast-article-single:nth-child(1n+2),
.ast-separate-container .ast-article-post:nth-child(1n+2) {
    padding-top: 0 !important;
}
/* Remove Astra page header/footer margin/padding */
.ast-no-sidebar .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
/* Astra full-width layout: kill padding */
.ast-plain-container .site-content > .ast-container {
    padding-top: 0 !important;
}
.ast-page-builder-template .site-content > .ast-container {
    padding-top: 0 !important;
}
/* Elementor wrapper reset */
.elementor-widget-theme-post-content,
.elementor-widget-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
/* Astra bottom spacing kill */
.ast-separate-container .ast-article-single:last-child,
.ast-separate-container .ast-article-post:last-child {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.site-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
/* Kill spacing between KK Stars and footer */
.ccp-wrap + .kk-star-ratings,
.ccp-wrap ~ .kk-star-ratings {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.entry-content .kk-star-ratings {
    margin-bottom: 0 !important;
}
.entry-content {
    padding-bottom: 0 !important;
}

/* ---- Sections ---- */
.ccp-section {
    padding: 40px 0;
}
.ccp-section:last-child {
    padding-bottom: 20px;
}
.ccp-section--hero {
    background: #FFF5F2;
    padding: 50px 0 40px;
    text-align: center;
}
.ccp-section--alt {
    background: #FFF5F2;
}
.ccp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Layout 2 colonnes ---- */
.ccp-row {
    display: flex;
    align-items: center;
    gap: 50px;
}
.ccp-row--reverse {
    flex-direction: row-reverse;
}
.ccp-col {
    flex: 1;
    min-width: 0;
}

/* ---- Images ---- */
.ccp-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* ---- Typography ---- */
.ccp-wrap h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 auto 20px;
    color: #1a1a2e;
    max-width: 800px;
}
.ccp-wrap h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #1a1a2e;
}
.ccp-wrap h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 28px;
    color: #1a1a2e;
}
.ccp-wrap p {
    font-size: 16px;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.7;
}
.ccp-wrap ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.ccp-wrap ul li {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
}
.ccp-wrap a {
    color: #EF562D;
    text-decoration: none;
}
.ccp-wrap a:hover {
    text-decoration: underline;
}

/* ---- Hero ---- */
.ccp-section--hero p {
    max-width: 750px;
    margin: 0 auto 30px;
    font-size: 17px;
    color: #666;
}

/* ---- Bouton CTA ---- */
.ccp-btn {
    display: inline-block;
    background: linear-gradient(135deg, #EF562D 0%, #D94A24 100%);
    color: #fff !important;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 86, 45, 0.3);
}
.ccp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 86, 45, 0.4);
    color: #fff !important;
    text-decoration: none !important;
}

/* ---- Engagements checklist ---- */
.ccp-checklist {
    list-style: none !important;
    padding-left: 0 !important;
    columns: 2;
    column-gap: 30px;
}
.ccp-checklist li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 14px;
    font-size: 16px;
    break-inside: avoid;
}
.ccp-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 24px;
    height: 24px;
    background: #EF562D;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---- FAQ Accordion ---- */
.ccp-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}
.ccp-faq-q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 20px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #fff !important;
    background: #0D3C60 !important;
    border: none !important;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.25s, color 0.25s;
    line-height: 1.5;
    border-radius: 12px;
}
.ccp-faq-q span {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.ccp-faq-q:hover {
    background: linear-gradient(135deg, #EF562D 0%, #D94A24 100%) !important;
    color: #fff !important;
}
.ccp-faq-q:hover .ccp-faq-icon {
    stroke: #fff;
}
.ccp-faq-item.ccp-open .ccp-faq-q {
    background: linear-gradient(135deg, #EF562D 0%, #D94A24 100%) !important;
    color: #fff !important;
    border-radius: 12px 12px 0 0;
}
.ccp-faq-item.ccp-open .ccp-faq-q .ccp-faq-icon {
    stroke: #fff;
}
.ccp-faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: 16px;
    margin-top: 2px;
    transition: transform 0.3s ease;
    stroke: #fff;
}
.ccp-faq-item.ccp-open .ccp-faq-icon {
    transform: rotate(45deg);
}
.ccp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.ccp-faq-a-inner {
    padding: 10px 20px 14px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}
.ccp-faq-item.ccp-open .ccp-faq-a {
    max-height: 300px;
}

/* ---- Villes proches (liste compacte 2 colonnes) ---- */
.ccp-nearby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 10px;
}
.ccp-nearby-card {
    display: block;
    padding: 5px 0;
    background: none;
    border: none;
    border-radius: 0;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.ccp-nearby-card:hover {
    background: none;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}
.ccp-nearby-nom {
    font-weight: 500;
    color: #EF562D;
    font-size: 14px;
}
.ccp-nearby-cp {
    color: #9ca3af;
    font-size: 13px;
    margin-left: 2px;
}
.ccp-nearby-card:hover .ccp-nearby-nom {
    color: #D94A24;
    text-decoration: underline;
}
.ccp-nearby-card:hover .ccp-nearby-cp {
    color: #6b7280;
}
.ccp-dept-link {
    text-align: center;
    margin-top: 24px;
    font-size: 15px;
}
.ccp-dept-link a {
    color: #EF562D;
    font-weight: 600;
}

/* ---- Department page grid ---- */
.ccp-dept-letter-section {
    margin-bottom: 24px;
}
.ccp-dept-letter {
    font-size: 20px;
    font-weight: 700;
    color: #EF562D;
    margin-bottom: 10px;
    margin-top: 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #EF562D;
    display: inline-block;
}
.ccp-dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px;
}
.ccp-dept-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.ccp-dept-card:hover {
    background: #EF562D;
    border-color: #EF562D;
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(239, 86, 45, 0.2);
}
.ccp-dept-card-nom {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}
.ccp-dept-card-cp {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
}
.ccp-dept-card:hover .ccp-dept-card-nom,
.ccp-dept-card:hover .ccp-dept-card-cp {
    color: #fff;
}

/* ---- Region page: department cards grid ---- */
.ccp-region-dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.ccp-region-dept-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ccp-region-dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #EF562D 0%, #D94A24 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ccp-region-dept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(239, 86, 45, 0.2);
    border-color: #EF562D;
}
.ccp-region-dept-card:hover::before {
    opacity: 1;
}
.ccp-region-dept-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #EF562D 0%, #D94A24 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.ccp-region-dept-name {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 16px;
    margin-bottom: 4px;
}
.ccp-region-dept-count {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
}
.ccp-region-dept-card:hover .ccp-region-dept-name {
    color: #EF562D;
}

/* ---- Region page: all regions list ---- */
.ccp-region-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.ccp-region-list-card {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.ccp-region-list-card:hover {
    background: #EF562D;
    border-color: #EF562D;
    color: #fff;
    box-shadow: 0 3px 10px rgba(239, 86, 45, 0.25);
}
.ccp-region-list-card.ccp-region-list-current {
    background: linear-gradient(135deg, #EF562D 0%, #D94A24 100%);
    border-color: #EF562D;
    color: #fff;
    font-weight: 600;
}

/* ---- Tarifs CTA centré ---- */
.ccp-center {
    text-align: center;
}

/* ---- Séparateur doré ---- */
.ccp-sep {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #EF562D, #D94A24);
    border: none;
    margin: 0 auto 30px;
    border-radius: 2px;
}

/* =============================================
   City List Accordion (Trouvez votre réparateur)
   ============================================= */
.ccp-section-villes-departement {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}
.ccp-villes-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}
.ccp-villes-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.ccp-villes-header {
    text-align: center;
    padding: 30px 30px 24px;
    background: linear-gradient(135deg, #EF562D 0%, #D94A24 100%);
    color: white;
}
.ccp-villes-header h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.ccp-villes-header p {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0;
}
.ccp-button-container {
    padding: 20px 30px;
    text-align: center;
}
.ccp-button-dpt {
    background: linear-gradient(135deg, #EF562D 0%, #D94A24 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(239, 86, 45, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.ccp-button-dpt:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 86, 45, 0.4);
}
.ccp-button-dpt:active {
    transform: translateY(-1px);
}
.ccp-button-dpt svg {
    transition: transform 0.3s ease;
}
.ccp-button-dpt.ccp-active svg:last-child {
    transform: rotate(180deg);
}

/* Ville display panel */
.ccp-ville-display {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}
.ccp-ville-display.ccp-ville-show {
    max-height: 800px;
    overflow-y: auto;
}
.ccp-container-accordeon {
    padding: 30px;
}
.ccp-container-accordeon h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ccp-container-accordeon h3 strong {
    color: #EF562D;
}

/* Alphabet filter */
.ccp-alphabet-filter-wrapper {
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.ccp-alphabet-filter {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.ccp-alphabet-filter::-webkit-scrollbar {
    height: 6px;
}
.ccp-alphabet-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.ccp-alphabet-filter::-webkit-scrollbar-thumb {
    background: #EF562D;
    border-radius: 3px;
}
.ccp-letter-filter {
    min-width: 38px;
    height: 38px;
    border: none !important;
    background: #0D3C60 !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.ccp-letter-filter:hover {
    background: linear-gradient(135deg, #EF562D 0%, #D94A24 100%) !important;
    color: #fff !important;
    border-color: #EF562D !important;
}
.ccp-letter-filter.ccp-letter-active {
    background: linear-gradient(135deg, #EF562D 0%, #D94A24 100%) !important;
    color: #fff !important;
    border-color: #EF562D !important;
    box-shadow: 0 2px 8px rgba(239, 86, 45, 0.3);
}
.ccp-letter-filter.ccp-letter-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* Letter groups */
.ccp-letter-group {
    animation: ccpFadeIn 0.3s ease;
}
.ccp-accord-content {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Individual city link items */
.ccp-ville-list-item {
    display: block;
    padding: 10px 16px;
    margin: 3px 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.ccp-ville-list-item:hover {
    background: #EF562D;
    color: white;
    transform: translateX(5px);
    border-color: #EF562D;
    box-shadow: 0 4px 12px rgba(239, 86, 45, 0.2);
    text-decoration: none !important;
}
.ccp-ville-list-item span {
    color: #6b7280;
    font-weight: 400;
    font-size: 14px;
    margin-left: 4px;
}
.ccp-ville-list-item:hover span {
    color: rgba(255, 255, 255, 0.9);
}

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

/* Accessibility */
.ccp-button-dpt:focus,
.ccp-ville-list-item:focus,
.ccp-letter-filter:focus {
    outline: 3px solid rgba(239, 86, 45, 0.3);
    outline-offset: 2px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .ccp-row,
    .ccp-row--reverse {
        flex-direction: column;
        gap: 30px;
    }
    .ccp-section {
        padding: 30px 0;
    }
    .ccp-wrap h1 {
        font-size: 24px;
    }
    .ccp-wrap h2 {
        font-size: 22px;
    }
    .ccp-section--hero {
        padding: 35px 0 25px;
    }
    .ccp-section--hero p {
        font-size: 15px;
    }
    .ccp-nearby-grid {
        grid-template-columns: 1fr;
    }
    .ccp-dept-grid {
        grid-template-columns: 1fr;
    }
    .ccp-region-dept-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .ccp-region-dept-card {
        padding: 16px 12px;
    }
    .ccp-region-dept-code {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .ccp-region-dept-name {
        font-size: 14px;
    }
    .ccp-region-list-grid {
        gap: 6px;
    }
    .ccp-region-list-card {
        padding: 6px 14px;
        font-size: 13px;
    }
    .ccp-faq-q {
        font-size: 15px;
        padding: 14px 18px;
    }
    .ccp-checklist {
        columns: 1;
    }
    /* City accordion responsive */
    .ccp-section-villes-departement {
        padding: 20px 16px;
    }
    .ccp-villes-header {
        padding: 30px 20px 20px;
    }
    .ccp-villes-header h2 {
        font-size: 24px;
    }
    .ccp-villes-header p {
        font-size: 14px;
    }
    .ccp-button-dpt {
        padding: 14px 32px;
        font-size: 15px;
    }
    .ccp-container-accordeon {
        padding: 20px;
    }
    .ccp-alphabet-filter-wrapper {
        margin-bottom: 15px;
        padding: 8px;
    }
    .ccp-letter-filter {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .ccp-ville-list-item {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* =============================================
   Kill spacing between KK Stars and footer
   ============================================= */
.ccp-wrap + .kk-star-ratings,
.ccp-wrap ~ .kk-star-ratings {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.entry-content .kk-star-ratings {
    margin-bottom: 0 !important;
}
.entry-content {
    padding-bottom: 0 !important;
}
