/* ==========================================================================
   1. Grille du Catalogue (Shortcode)
   ========================================================================== */
.ccatalog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

.ccatalog-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #ffe2ef;
    padding: 15px;
    border-radius: 8px;

}

.ccatalog-filters select {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
}

.ccatalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.ccatalog-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.ccatalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.ccatalog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.ccatalog-title {
    margin: 0 0 10px 0;
    font-size: 1.25em;
}

.ccatalog-title a {
    text-decoration: none;
    color: #333;
}

.ccatalog-excerpt {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.ccatalog-card .button {
    display: block;
    text-align: center;
    background: #d9427c;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.ccatalog-card-price{color:#d9427c!important;}

.ccatalog-card .button:hover {
    background: #005177;
}

/* ==========================================================================
   2. Formulaire de réservation (Fiche Produit)
   ========================================================================== */
.ccatalog-booking-container {
    margin-top: 50px;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.ccatalog-booking-container h3, 
.ccatalog-booking-container h4 {
    margin-top: 0;
    color: #222;
    border-bottom: 2px solid #0073aa;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

#event-booking-form label {
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 8px;
    
}

#event-booking-form input[type="text"],
#event-booking-form input[type="date"],
#event-booking-form input[type="tel"],
#event-booking-form input[type="email"],
#event-booking-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    
}

#event-booking-form input:focus,
#event-booking-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    outline: none;
}

/* Badges pour les pays */
.ccatalog-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ccatalog-radio-label {
    display: flex;
    align-items:center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #eee;
    border-radius: 30px;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
    line-height:25px;
    
}

.ccatalog-radio-label:hover {
    border-color: #bbb;
    background: #f9f9f9;
}

/* Style quand le radio est sélectionné */
.ccatalog-radio-label:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background: #f0f8ff;
    color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.ccatalog-radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.ccatalog-flag {
    width: 22px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Liste déroulante des villes */
#store_custom_list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #0073aa;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    margin: 0;
    padding: 0;
    list-style: none;
}

#store_custom_list li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    transition: background 0.2s;
}

#store_custom_list li:last-child {
    border-bottom: none;
}

#store_custom_list li:hover {
    background: #f0f8ff;
    color: #0073aa;
}

/* Boutons d'action */
.ccatalog-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 15px;
}

.ccatalog-btn:hover {
    background: #005177;
}

.ccatalog-btn-secondary {
    background: #e2e8f0;
    color: #334155;
    margin-right: 10px;
}

.ccatalog-btn-secondary:hover {
    background: #cbd5e1;
}

.btn-gps {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-gps:hover {
    background: #059669;
}

/* Animations et retours utilisateur */
#store_loader {
    color: #0073aa;
    font-weight: 500;
    margin-top: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

#form-feedback p {
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

#form-feedback .success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

#form-feedback .error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* ==========================================================================
   3. Fil d’Ariane (Breadcrumb)
   ========================================================================== */
.ccatalog-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    padding-top: 20px;
    font-size: 14px;
    color: #64748b;
}

.ccatalog-breadcrumb a {
    color: #d9427c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ccatalog-breadcrumb a:hover {
    color: #b03060;
    text-decoration: underline;
}

.ccatalog-breadcrumb-separator {
    color: #cbd5e1;
    user-select: none;
}

.ccatalog-breadcrumb-current {
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* ==========================================================================
   4. Grille d'options avec Image (Checkbox & Radio Cards)
   ========================================================================== */
.ccatalog-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 12px;
}

.ccatalog-extra-card {
    position: relative;
    border: 2px solid #eee;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}

.ccatalog-extra-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.ccatalog-extra-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f1f5f9;
}

.ccatalog-extra-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.ccatalog-extra-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.ccatalog-extra-price {
    font-size: 13px;
    color: #10b981;
    font-weight: 700;
}

/* État coché global (Checkbox & Radio) */
.ccatalog-extra-card:has(input:checked) {
    border-color: #0073aa;
    background: #f0f9ff;
}

.ccatalog-extra-card:has(input:checked) .ccatalog-extra-name {
    color: #0073aa;
}

/* ==========================================================================
   5. Comportement des inputs natifs (Anti-scroll) et Textarea
   ========================================================================== */
.ccatalog-extra-card:has(input[type="radio"]) {
    border-radius: 50% 50% 8px 8px;
}

/* Cartes de formule (prix de base, sans image) : rectangle classique. */
.ccatalog-base-price-group .ccatalog-extra-card:has(input[type="radio"]) {
    border-radius: 8px;
    justify-content: center;
    min-height: 60px;
}

/* Empêche le navigateur de scroller lors du clic */
.ccatalog-extra-card input[type="checkbox"],
.ccatalog-extra-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    margin: 0;
    z-index: -1;
}

.ccatalog-polymorphic-options-section textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    background: #fff;
    resize: vertical;
    transition: border-color 0.2s;
}

.ccatalog-polymorphic-options-section textarea:focus {
    border-color: #0073aa;
    outline: none;
}

/* ==========================================================================
   6. Style du conteneur de recherche d'adresse (OpenStreetMap)
   ========================================================================== */
.ccatalog-address-group {
    display: flex;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
}

.ccatalog-address-group input {
    border-right: none !important;
}

.ccatalog-address-group button {
    border-radius: 0 6px 6px 0 !important;
}

/* ==========================================================================
   7. Boutiques les plus proches : liste classée + carte OpenStreetMap
   ========================================================================== */
.ccatalog-nearest-results {
    margin-bottom: 22px;
}

.ccatalog-nearest-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.ccatalog-map {
    height: 280px;
    width: 100%;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    /* Leaflet dessine ses tuiles en absolu : sans ça les coins ronds bavent. */
    overflow: hidden;
    z-index: 0;
}

.ccatalog-nearest-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ccatalog-nearest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ccatalog-nearest-item:hover,
.ccatalog-nearest-item:focus-visible {
    border-color: #0073aa;
    background: #f0f9ff;
    outline: none;
}

.ccatalog-nearest-item.is-selected {
    border-color: #0073aa;
    background: #f0f8ff;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.ccatalog-nearest-rank {
    flex: 0 0 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.ccatalog-nearest-item.is-selected .ccatalog-nearest-rank {
    background: #0073aa;
    color: #fff;
}

.ccatalog-nearest-name {
    flex: 1;
    font-weight: 600;
    color: #334155;
}

.ccatalog-nearest-dist {
    flex: 0 0 auto;
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

/* Marqueurs de la carte (divIcon Leaflet : pas d'image externe a charger). */
.ccatalog-pin span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-size: 13px;
    font-weight: 700;
}

.ccatalog-pin-store span {
    background: #0073aa;
    color: #fff;
}

.ccatalog-pin.is-selected span {
    background: #d9427c;
    transform: rotate(-45deg) scale(1.15);
}

.ccatalog-pin-user span {
    background: #fff;
    transform: none;
    border-radius: 50%;
    font-size: 15px;
}

@media (max-width: 600px) {
    .ccatalog-map { height: 220px; }
}

/* Encart affiche quand la demande part au siege social (pas de boutique). */
.ccatalog-hq-notice {
    margin-bottom: 25px;
    padding: 14px 18px;
    background: #f0f9ff;
    border: 1px solid #0073aa;
    border-left-width: 4px;
    border-radius: 6px;
    color: #334155;
}

/* ==========================================================================
   8. Adresse de la boutique retenue
   ========================================================================== */
.ccatalog-selected-address {
    margin: 8px 0 0;
    padding: 10px 14px;
    background: #f0f9ff;
    border-radius: 6px;
    font-size: 14px;
    color: #334155;
}

/* ==========================================================================
   9. Nos prochaines ouvertures ([custom_openings])
   ========================================================================== */
.ccatalog-openings {
    display: grid;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.ccatalog-openings-heading {
    margin: 0;
    text-align: center;
}

.ccatalog-openings-empty {
    text-align: center;
    color: #64748b;
}

.ccatalog-opening-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ccatalog-opening-header {
    padding: 24px 24px 20px;
    background: #d9427c;
    color: #fff;
    text-align: center;
}

.ccatalog-opening-eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    opacity: 0.85;
}

.ccatalog-opening-date {
    margin: 0 0 16px;
    color: #fff;
    font-size: 24px;
    text-transform: capitalize;
}

.ccatalog-countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ccatalog-countdown-unit {
    min-width: 68px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.ccatalog-countdown-unit span {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ccatalog-countdown-unit small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.85;
}

.ccatalog-countdown-open {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.ccatalog-opening-stores {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ccatalog-opening-store {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 24px;
    border-bottom: 1px solid #eaeaea;
}

.ccatalog-opening-store:last-child {
    border-bottom: none;
}

.ccatalog-opening-city {
    font-weight: 600;
    color: #334155;
}

.ccatalog-opening-address {
    font-size: 14px;
    color: #64748b;
}

@media (max-width: 600px) {
    .ccatalog-opening-date { font-size: 20px; }
    .ccatalog-countdown-unit { min-width: 60px; }
    .ccatalog-countdown-unit span { font-size: 22px; }
}

/* ==========================================================================
   10. Champs construits des formulaires libres
   ========================================================================== */
.ccatalog-form-field {
    margin-bottom: 20px;
}

.ccatalog-field-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
}

.ccatalog-form-field input[type="text"],
.ccatalog-form-field input[type="email"],
.ccatalog-form-field input[type="tel"],
.ccatalog-form-field input[type="date"],
.ccatalog-form-field select,
.ccatalog-form-field textarea {
    width: 100%;
}
