/* =============================================
   Local SEO Deployer — Front CSS
   Light theme: white bg, navy text, red accents
   ============================================= */

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

.ccp-wrap {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    color: #0f1b3d;
    line-height: 1.7;
    font-size: 16px;
}

/* ---- Sections ---- */
.ccp-section {
    padding: 40px 0;
}
.ccp-section--hero {
    background: #f7f8fa;
    padding: 50px 0 40px;
    text-align: center;
}
.ccp-section--alt {
    background: #f7f8fa;
}
.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: #0f1b3d;
    max-width: 800px;
}
.ccp-wrap h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #0f1b3d;
}
.ccp-wrap h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 28px;
    color: #0f1b3d;
}
.ccp-wrap p {
    font-size: 16px;
    color: #3b4f7a;
    margin-bottom: 14px;
    line-height: 1.7;
}
.ccp-wrap ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.ccp-wrap ul li {
    font-size: 16px;
    color: #3b4f7a;
    margin-bottom: 8px;
    line-height: 1.6;
}
.ccp-wrap a {
    color: #c0392b;
    text-decoration: none;
}
.ccp-wrap a:hover {
    text-decoration: underline;
    color: #a93226;
}

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

/* ---- Bouton CTA ---- */
.ccp-btn {
    display: inline-block;
    background: #c0392b;
    color: #fff !important;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.2);
}
.ccp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.3);
    background: #a93226;
    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: #c0392b;
    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 #e8ebf2;
    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;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #0f1b3d;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.25s, color 0.25s;
    line-height: 1.5;
}
.ccp-faq-q span {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.ccp-faq-q:hover {
    background: #c0392b;
    color: #fff;
}
.ccp-faq-q:hover .ccp-faq-icon {
    stroke: #fff;
}
.ccp-faq-item.ccp-open .ccp-faq-q {
    background: #c0392b;
    color: #fff;
}
.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;
}
.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: #3b4f7a;
    font-size: 15px;
    line-height: 1.7;
}
.ccp-faq-item.ccp-open .ccp-faq-a {
    max-height: 300px;
}

/* ---- Villes proches ---- */
.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;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.ccp-nearby-nom {
    font-weight: 500;
    color: #c0392b;
    font-size: 14px;
}
.ccp-nearby-cp {
    color: #6b7a9e;
    font-size: 13px;
    margin-left: 2px;
}
.ccp-nearby-card:hover .ccp-nearby-nom {
    color: #a93226;
    text-decoration: underline;
}

.ccp-dept-link {
    text-align: center;
    margin-top: 24px;
    font-size: 15px;
}
.ccp-dept-link a {
    color: #c0392b;
    font-weight: 600;
}

/* ---- Department page grid ---- */
.ccp-dept-letter-section {
    margin-bottom: 24px;
}
.ccp-dept-letter {
    font-size: 20px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 10px;
    margin-top: 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #c0392b;
    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 #e8ebf2;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.ccp-dept-card:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.2);
}
.ccp-dept-card-nom {
    font-weight: 500;
    color: #0f1b3d;
    font-size: 14px;
}
.ccp-dept-card-cp {
    color: #6b7a9e;
    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 ---- */
.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 #e8ebf2;
    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: #c0392b;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ccp-region-dept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.15);
    border-color: #c0392b;
}
.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: #c0392b;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.ccp-region-dept-name {
    font-weight: 600;
    color: #0f1b3d;
    font-size: 16px;
    margin-bottom: 4px;
}
.ccp-region-dept-count {
    color: #6b7a9e;
    font-size: 13px;
    font-weight: 400;
}
.ccp-region-dept-card:hover .ccp-region-dept-name {
    color: #c0392b;
}

/* ---- 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 #e8ebf2;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #0f1b3d;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.ccp-region-list-card:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.2);
}
.ccp-region-list-card.ccp-region-list-current {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
    font-weight: 600;
}

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

/* ---- Séparateur ---- */
.ccp-sep {
    width: 80px;
    height: 3px;
    background: #c0392b;
    border: none;
    margin: 0 auto 30px;
    border-radius: 2px;
}

/* =============================================
   City List Accordion
   ============================================= */
.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: 16px;
    box-shadow: 0 10px 30px rgba(15, 27, 61, 0.08);
    overflow: hidden;
}
.ccp-villes-header {
    text-align: center;
    padding: 30px 30px 24px;
    background: #0f1b3d;
    color: white;
}
.ccp-villes-header h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.ccp-villes-header p {
    font-size: 16px;
    opacity: 0.7;
    color: #fff;
    margin-bottom: 0;
}
.ccp-button-container {
    padding: 20px 30px;
    text-align: center;
}
.ccp-button-dpt {
    background: #c0392b;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
}
.ccp-button-dpt:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.3);
    background: #a93226;
}
.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: #f7f8fa;
    border-top: 1px solid #e8ebf2;
    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: #0f1b3d;
    margin-bottom: 20px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ccp-container-accordeon h3 strong {
    color: #c0392b;
}

/* Alphabet filter */
.ccp-alphabet-filter-wrapper {
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(15, 27, 61, 0.05);
}
.ccp-alphabet-filter {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 5px;
    scroll-behavior: smooth;
}
.ccp-alphabet-filter::-webkit-scrollbar { height: 6px; }
.ccp-alphabet-filter::-webkit-scrollbar-track { background: #f0f2f7; border-radius: 3px; }
.ccp-alphabet-filter::-webkit-scrollbar-thumb { background: #c0392b; border-radius: 3px; }

.ccp-letter-filter {
    min-width: 38px;
    height: 38px;
    border: 1px solid #e8ebf2;
    background: white;
    color: #6b7a9e;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.ccp-letter-filter:hover {
    background: #f7f8fa;
    color: #0f1b3d;
    border-color: #a8b2cc;
}
.ccp-letter-filter.ccp-letter-active {
    background: #c0392b;
    color: white;
    border-color: #c0392b;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.25);
}
.ccp-letter-filter.ccp-letter-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

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

.ccp-ville-list-item {
    display: block;
    padding: 10px 16px;
    margin: 3px 0;
    background: white;
    border: 1px solid #e8ebf2;
    border-radius: 10px;
    color: #0f1b3d;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-weight: 500;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
}
.ccp-ville-list-item:hover {
    background: #c0392b;
    color: white;
    transform: translateX(5px);
    border-color: #c0392b;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.2);
    text-decoration: none !important;
}
.ccp-ville-list-item span { color: #6b7a9e; 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); }
}

.ccp-button-dpt:focus,
.ccp-ville-list-item:focus,
.ccp-letter-filter:focus {
    outline: 3px solid rgba(192, 57, 43, 0.3);
    outline-offset: 2px;
}

/* ---- Hide Astra header/footer on virtual pages ---- */
.site-header,
#ast-desktop-header,
.ast-above-header-wrap,
.ast-main-header-wrap,
header.entry-header,
.site-footer,
.ast-footer-overlay,
footer.entry-footer,
.ast-small-footer,
.ast-above-footer-wrap,
.ast-below-footer-wrap,
.ast-footer-copyright,
#colophon,
.elementor-location-footer,
.ast-footer-overlay-wrap { display: none !important; }

/* ---- Custom topbar ---- */
.ccp-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #e8ebf2;
    box-shadow: 0 1px 3px rgba(15,27,61,.06);
}
.ccp-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ccp-topbar-logo {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f1b3d !important;
    text-decoration: none !important;
}
.ccp-topbar-logo span { color: #c0392b; }
.ccp-topbar-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.ccp-topbar-nav a {
    font-size: 14px;
    font-weight: 500;
    color: #3b4f7a !important;
    text-decoration: none !important;
    transition: color .3s ease;
}
.ccp-topbar-nav a:hover {
    color: #c0392b !important;
    text-decoration: none !important;
}
.ccp-topbar-nav .ccp-nav-cta {
    background: #c0392b !important;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: all .3s ease;
}
.ccp-topbar-nav .ccp-nav-cta:hover {
    background: #a93226 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192,57,43,.2);
}

/* Burger mobile */
.ccp-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.ccp-burger span { display: block; width: 22px; height: 2px; background: #0f1b3d; margin: 5px 0; transition: .3s; border-radius: 2px; }

/* Offset content for fixed topbar */
.ccp-section--hero { padding-top: 100px !important; }

/* ---- Footer (matching landing page) ---- */
.ccp-footer {
    background: #fafbfc;
    padding: 60px 0 28px;
    border-top: 1px solid #e8ebf2;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
}
.ccp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}
.ccp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.ccp-footer-brand {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f1b3d;
}
.ccp-footer-brand span { color: #c0392b; }
.ccp-footer p { font-size: 13px; color: #6b7a9e; line-height: 1.7; font-weight: 300; margin-bottom: 0; }
.ccp-footer h5 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #0f1b3d;
    margin-bottom: 16px;
    margin-top: 0;
}
.ccp-footer-links { list-style: none !important; padding: 0 !important; margin: 0; }
.ccp-footer-links li { margin-bottom: 8px; font-size: 13px; color: #6b7a9e; font-weight: 300; }
.ccp-footer-links a { font-size: 13px; color: #6b7a9e !important; font-weight: 300; text-decoration: none !important; }
.ccp-footer-links a:hover { color: #c0392b !important; text-decoration: none !important; }
.ccp-footer-bottom {
    border-top: 1px solid #e8ebf2;
    padding-top: 20px;
    text-align: center;
    font-size: 11px;
    color: #6b7a9e;
    font-weight: 300;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .ccp-topbar-nav { display: none; position: fixed; top: 56px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid #e8ebf2; box-shadow: 0 4px 16px rgba(15,27,61,.08); z-index: 99; }
    .ccp-burger { display: block; }
    .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; }
    .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; }
    .ccp-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
