/*
Theme Name: Listeo ChildTheme
Theme URI: http://listeo.pro
Author: Purethemes
Author URI: http://themeforest.net/user/purethemes
Description: Directory WordPress Theme by Purethemes
Version: 1.0
License: ThemeForest
License URI: http://themeforest.net/licenses
Text Domain: listeo
Domain Path: /languages/
Tags: light, responsive-layout, post-formats, theme-options, translation-ready, two-columns
Template: listeo
*/
/* CCC-MAINT:FILE
 * Déclare le thème enfant Listeo et complète son apparence.
 * Parcours et dépendances : DOCUMENTATION.md.
 */


/* Car Clean Connect professional directory. */
.ccc-professionals-archive { background: #f5f8fa; color: #19323f; }
.ccc-directory-hero { position: relative; overflow: hidden; background: #102b3a; color: #fff; isolation: isolate; }
.ccc-directory-hero::before { content: ""; position: absolute; width: 660px; height: 660px; right: -190px; top: -280px; background: radial-gradient(circle, rgba(25,140,191,.35), transparent 67%); z-index: -1; }
.ccc-directory-hero__inner { min-height: 410px; display: flex; align-items: center; justify-content:flex-start; gap: 10px; padding-top: 66px; padding-bottom: 76px; }
.ccc-directory-hero__copy { position: relative; max-width: 760px; z-index: 1; }
.ccc-directory-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #89cae7; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.ccc-directory-hero__eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #52c6ed; box-shadow: 0 0 0 5px rgba(82,198,237,.14); }
.ccc-directory-hero h1 { color: #fff; margin: 22px 0 20px; max-width: 770px; font-size: clamp(34px, 4.2vw, 59px); line-height: 1.08; letter-spacing: -.035em; font-weight: 750; }
.ccc-directory-hero__dot { color: #5bc7ed; }
.ccc-directory-hero__copy > p { margin: 0; max-width: 600px; color: #d0e0e7; font-size: 17px; line-height: 1.65; }
.ccc-directory-hero__mark { position: relative; width: 250px; height: 250px; flex: 0 0 250px; border: 1px solid rgba(140,207,230,.23); border-radius: 50%; display: grid; place-items: center; transform: rotate(-14deg); }
.ccc-directory-hero__mark::before, .ccc-directory-hero__mark::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(140,207,230,.2); border-radius: 50%; }
.ccc-directory-hero__mark::after { inset: 43px; }
.ccc-directory-hero__mark-center { color: rgba(255,255,255,.82); font-size: 52px; font-weight: 800; letter-spacing: -.12em; }
.ccc-directory-hero__mark-center span { color: #62c7eb; font-size: 33px; vertical-align: 5px; margin: 0 4px; }
.ccc-directory-results { padding: 70px 0 100px; }
.ccc-directory-results__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.ccc-directory-results__kicker { color: #187da8; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.ccc-directory-results__heading h2 { margin: 7px 0 0; color: #19323f; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
.ccc-directory-results__count { display: inline-flex; padding: 9px 14px; border-radius: 99px; color: #226b8d; background: #e3f1f6; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ccc-professionals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 24px; }
.ccc-professional-profile { min-width: 0; background: #fff; border: 1px solid #dce7eb; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 28px rgba(20,61,77,.055); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ccc-professional-profile:hover { transform: translateY(-4px); border-color: #a4d3e3; box-shadow: 0 20px 38px rgba(20,61,77,.13); }
.ccc-professional-profile__link { display: flex; flex-direction: column; height: 100%; color: #19323f; text-decoration: none; }
.ccc-professional-profile__link:hover, .ccc-professional-profile__link:focus { color: #19323f; text-decoration: none; }
.ccc-professional-profile__link:focus-visible { outline: 3px solid #329fce; outline-offset: -3px; }
.ccc-professional-profile__cover { position: relative; display: block; height: 118px; overflow: hidden; background: linear-gradient(120deg, #17405a, #1d739a); }
.ccc-professional-profile__cover::before { content: ""; position: absolute; width: 240px; height: 240px; right: -58px; top: -155px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: 0 0 0 27px rgba(255,255,255,.045), 0 0 0 55px rgba(255,255,255,.045); }
.ccc-professional-profile__cover span:first-child { position: absolute; width: 110px; height: 1px; right: 23px; bottom: 34px; background: rgba(255,255,255,.3); transform: rotate(-35deg); }
.ccc-professional-profile__cover span:last-child { position: absolute; width: 68px; height: 1px; right: 9px; bottom: 45px; background: rgba(255,255,255,.3); transform: rotate(-35deg); }
.ccc-professional-profile__avatar { position: relative; width: 98px; height: 98px; margin: -49px 0 0 24px; border: 4px solid white; border-radius: 50%; overflow: hidden; background: #e9f1f4; box-shadow: 0 3px 12px rgba(8,37,52,.13); }
.ccc-professional-profile__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ccc-professional-profile__content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px 26px 10px; }
.ccc-professional-profile__label { color: #197da8; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.ccc-professional-profile__name { display: block; margin-top: 10px; font-size: 25px; line-height: 1.25; font-weight: 750; }
.ccc-professional-profile__description { color: #657985; font-size: 14px; line-height: 1.55; margin-top: 11px; min-height: 44px; }
.ccc-professional-profile__services { margin-top: 19px; border-radius: 99px; padding: 6px 11px; background: #eff6f9; color: #286e8c; font-size: 12px; font-weight: 700; }
.ccc-professional-profile__footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid #e9eff1; padding: 16px 26px; color: #126e99; font-size: 14px; font-weight: 750; }
.ccc-professional-profile__arrow { width: 29px; height: 29px; display: grid; place-items: center; background: #e6f3f8; border-radius: 50%; font-size: 17px; transition: background .2s, color .2s; }
.ccc-professional-profile:hover .ccc-professional-profile__arrow { color: #fff; background: #197da8; }
.ccc-professionals-archive__empty { background: #fff; border: 1px solid #dce7eb; border-radius: 16px; padding: 30px; color: #526b78; }

.ccc-directory-pagination { margin-top: 42px; }
.ccc-directory-pagination .page-numbers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; margin: 0; padding: 0; list-style: none; }
.ccc-directory-pagination .page-numbers li { margin: 0; padding: 0; }
.ccc-directory-pagination .page-numbers a,
.ccc-directory-pagination .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 12px; border: 1px solid #dce7eb; border-radius: 10px; background: #fff; color: #176f98; font-weight: 700; text-decoration: none; }
.ccc-directory-pagination .page-numbers a:hover,
.ccc-directory-pagination .page-numbers a:focus-visible,
.ccc-directory-pagination .page-numbers .current { border-color: #197da8; background: #197da8; color: #fff; }

/* Home carousel: reuses the archive profile cards. */
.ccc-home-carousel { color: #19323f; }
.ccc-home-carousel__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 32px; }
.ccc-home-carousel__header h2 { margin: 8px 0 10px; color: #19323f; font-size: clamp(29px, 3.4vw, 42px); line-height: 1.17; }
.ccc-home-carousel__header p { margin: 0; max-width: 590px; color: #657985; line-height: 1.6; }
.ccc-home-carousel__actions { display: flex; align-items: center; justify-content: flex-end; gap: 25px; margin-bottom: 16px; }
.ccc-home-carousel__all { color: #176f98; font-size: 14px; font-weight: 750; white-space: nowrap; }
.ccc-home-carousel__all:hover { color: #125777; }
.ccc-home-carousel__controls { display: flex; gap: 8px; }
.ccc-home-carousel__controls[hidden] { display: none; }
.ccc-home-carousel__controls button { width: 42px; height: 42px; padding: 0; border: 1px solid #c9dde5; border-radius: 50%; background: #fff; color: #176f98; font-size: 22px; line-height: 1; cursor: pointer; transition: color .2s, background .2s; }
.ccc-home-carousel__controls button:hover:not(:disabled), .ccc-home-carousel__controls button:focus-visible { background: #197da8; color: #fff; }
.ccc-home-carousel__controls button:disabled { opacity: .42; cursor: default; }
.ccc-home-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 5px 0 18px; }
.ccc-home-carousel__track::-webkit-scrollbar { display: none; }
.ccc-home-carousel__track .ccc-professional-profile { scroll-snap-align: start; }
.ccc-home-carousel__track:focus-visible { outline: 3px solid #329fce; outline-offset: 3px; }

@media (max-width: 991px) {
    #footer .container>.row:first-child {
        padding: 0 20px;
        grid-template-columns: 1fr 1fr !important;
        gap: 36px 48px !important;
    }
}

@media (max-width: 900px) {
    .ccc-home-carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
    .ccc-home-carousel__actions { justify-content: space-between; }
    .ccc-home-carousel__track { grid-auto-columns: min(86%, 340px); gap: 16px; }
}

/* Public professional profile. */
.ccc-professional-detail { min-height: 55vh; padding: 64px 0 96px; background: #f5f8fa; color: #19323f; }
.ccc-professional-detail__back { display: inline-block; margin-bottom: 34px; color: #197da8; font-weight: 700; }
.ccc-professional-detail__header { display: flex; align-items: center; gap: 26px; padding: 32px; background: #fff; border: 1px solid #dce7eb; border-radius: 18px; margin-bottom: 50px; }
.ccc-professional-detail__header img { border-radius: 50%; width: 112px; height: 112px; object-fit: cover; }
.ccc-professionals-archive__eyebrow { color: #197da8; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.ccc-professional-detail h1 { margin: 8px 0 0; font-size: clamp(32px, 3vw, 44px); }
.ccc-professional-detail__services h2 { margin-bottom: 24px; }
.ccc-professional-detail__service-image { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
@media (max-width: 750px) {
    .ccc-directory-hero__inner { min-height: 0; padding-top: 64px; padding-bottom: 70px; }
    .ccc-directory-hero__mark { display: none; }
    .ccc-directory-results { padding: 48px 0 72px; }
    #footer {
        background: #ffffff !important;
        padding: 54px 20px 0 !important;
    }
}
@media (max-width: 600px) {
    .ccc-directory-hero h1 { font-size: 36px; }
    .ccc-directory-hero__copy > p { font-size: 15px; }
    .ccc-directory-results__heading { align-items: flex-start; }
    .ccc-professional-detail { padding: 42px 0 64px; }
    .ccc-professional-detail__header { align-items: flex-start; flex-direction: column; padding: 24px; }
}

/* Responsive gutters for the Listeo footer and professional directory hero. */
@media (max-width: 1024px) {
    #footer,
    .ccc-directory-hero__inner {
        box-sizing: border-box;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 767px) {
    #footer,
    .ccc-directory-hero__inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Afficher le calendrier au-dessus de la réservation */
body.single-listing .daterangepicker {
    z-index: 1000002 !important;
}

/* Hide the department detail without changing stored values or search filters. */
.single-listing #listing-details .main-detail-_departements {
    display: none !important;
}
.single-listing #listing-details:not(:has(li:not(.main-detail-_departements))) {
    display: none !important;
}

/* Tableau des sanctions — article Conseils 1258 (Elementor). */
body.postid-1258 .ccc-article-table { width: 100%; overflow-x: auto; margin: 24px 0 32px; border-radius: 10px; }
body.postid-1258 .ccc-article-table table { width: 100%; min-width: 550px; border-collapse: collapse !important; border: 1px solid #cbd5df !important; margin: 0; }
body.postid-1258 .ccc-article-table th,
body.postid-1258 .ccc-article-table td { border: 1px solid #cbd5df !important; padding: 14px 16px !important; text-align: left; vertical-align: top; }
body.postid-1258 .ccc-article-table th { background: #edf5f8; color: #15384d; font-weight: 700; }
body.postid-1258 .ccc-article-table tbody tr:nth-child(even) { background: #f8fafc; }
@media(max-width: 600px) { body.postid-1258 .ccc-article-table th, body.postid-1258 .ccc-article-table td { padding: 11px 12px !important; } }
