/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* .styled-table {
    border-collapse: separate;
    border-spacing: 5px; 
  }

.rounded-content {
    border-radius: 10px;
    padding: 10px;
    margin: 5px;  
    display: inline-block;
  } */

    /* Styles pour le calendrier mensuel */
    .calendar-container {
        margin-bottom: 30px;
    }
    
    .calendar-controls {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
        gap: 10px;
    }

    #month-title {
        text-align: center;
        font-size: 1.5rem;
        margin: 15px 0;
    }

    #calendar-table {
        width: 100%;
       
		border-radius: 12px;
    }


    #calendar-table th, 
    #calendar-table td {
        border: 1px solid #ddd;
        text-align: center;
        padding: 8px;
        height: 40px;
    }

    #calendar-table th {
        background-color: #f2f2f2;
    }

    .day-link {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        color:darkgreen;
    }

	.day-link.booked-day-link {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        color:dodgerBlue;
    }

	

    .day-link:hover{
        display: block;
        text-decoration: none;
		transform: scale(1.5);
		color:white;
    }

	.no-link {
		pointer-events: none; /* Désactive les événements de souris */
    	cursor: default; /* Change le curseur */
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        color: lightGray;
    }

    /* Classes pour les jours */
    .day-bookable {
        background-color: rgba(76, 175, 80, 0.2);
    }

    .day-available {
        background-color: rgba(76, 175, 80, 0.1);
    }

    .day-booked {
        background-color: rgba(33, 150, 243, 0.4);
    }

	.day-unavailable {
        background-color: #f5f5f5;
        color: #aaa;
    }

    .selected-day {
        /*background-color: #e1f5fe !important;*/
        border: 4px solid #03a9f4 !important;
    }

 /* Styles pour la section des heures */
    .hours-container {
        margin-top: 20px;
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 12px;
        background-color: #f9f9f9;
    }

    .hours-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        margin-top: 15px;
    }

    .hour-item {
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #ddd;
    position: relative; /* Ajout pour permettre le positionnement absolu de l'étoile */
}

.hour-item .material-icons[style*="font-size: 14px"] {
    position: absolute;
    top: 2px;
    left: 2px;
    margin-left: 0; /* Supprimer la marge */
}

    .available {
        background-color: rgba(76, 175, 80, 0.1);
    }

    .unavailable {
        background-color: #f5f5f5;
        color: #aaa;
    }

.bookable-link {
	display: block;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.available {
	border-radius: 5px; /* Coins arrondis */
    background-color: rgba(76, 175, 80, 0.1);
}

.bookable {
        background-color: rgba(76, 175, 80, 0.2);
        cursor: pointer;
    }

/* .bookable {
	border-radius: 5px; 
    background-color: lightgreen; 
	  color:green;
	/*text-decoration: underline;
	Fond vert pour les créneaux disponibles 
}
 */
.booked {
        background-color: rgba(33, 150, 243, 0.4);
		text-decoration: underline;
        cursor: pointer;
    }

.booked.trial {
  background-color: rgba(245, 164, 66, 0.2);
}

.pastbooked {
        background-color: rgba(33, 150, 243, 0.4);
}

.pastbooked.trial {
  background-color: rgba(245, 164, 66, 0.2);
}

/* .booked {
	border-radius: 5px; 
    background-color: tomato;
	  color:red;
} */

.booked  a:hover{
	transform: scale(1.5);
	color:white;
	text-decoration: none;
	/*text-decoration: underline;
	/* Fond vert pour les créneaux disponibles */
}

.bookable a{
	border-radius: 5px; 
    color:darkgreen;
	text-decoration: underline;
	/* Fond vert pour les créneaux disponibles */
}

.bookable a:hover{
	border-radius: 5px; 
	transform: scale(1.5);
    color:white;
	text-decoration: none;
	/* Fond vert pour les créneaux disponibles */
}


/*
.material-order-icon {
    font-family: "Material Icons"; 
    content: "shopping_bag"; 
	color: green; 
    font-size: 24px; 
    margin-right: 5px; 
    vertical-align: middle; 
}*/

.material-order-icon::before {
    font-family: "Material Icons"; /* Indique qu'on utilise Material Icons */
    content: "shopping_bag"; /* Nom de l'icône */
    color: green; /* Couleur de l'icône */
    font-size: 24px; /* Taille de l'icône */
    margin-right: 5px; /* Espace avant le texte */
    vertical-align: middle; /* Alignement */
}

.material-logout-icon::before {
    font-family: "Material Icons"; /* Indique qu'on utilise Material Icons */
    content: "logout"; /* Nom de l'icône */
    color: green; /* Couleur de l'icône */
    font-size: 24px; /* Taille de l'icône */
    margin-right: 5px; /* Espace avant le texte */
    vertical-align: middle; /* Alignement */
}

.material-info-icon::before {
    font-family: "Material Icons"; /* Indique qu'on utilise Material Icons */
    content: ""; /* Nom de l'icône */
    color: green; /* Couleur de l'icône */
    font-size: 24px; /* Taille de l'icône */
    margin-right: 5px; /* Espace avant le texte */
    vertical-align: middle; /* Alignement */
}

.material-custom-icon::before {
    font-family: "Material Icons";
    content: attr(data-icon); /* Utilise la valeur du data-icon */
    font-size: 20px;
    margin-right: 8px;
    transition: color 0.3s;
}

.material-icons {
    font-size: 36px;
    color: red;
}

.material-custom-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: black;
    background: transparent;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

/* Ajout de l'icône en fonction du data-attribut */
.material-custom-link::before {
    font-family: "Material Icons";
    content: attr(data-icon); /* Utilise la valeur du data-icon */
    font-size: 20px;
    margin-right: 8px;
    transition: color 0.3s;
}

/* Effet au survol */
.material-custom-link:hover {
    background: #007bff;
    color: white;
}

.material-custom-link:hover::before {
    color: white;
}

.woocommerce-MyAccount-navigation {
	display:none;
}

.onsale {
    position: absolute;
    top: 48px !important;
    left: -25px !important;
    background: red !important;
    color: white;
    /*padding: 5px 10px;*/
    border-radius: 3px;
    transform: rotate(-45deg);
    transform-origin: top left;
	 width: 100px; /* Largeur fixe */
    text-align: center; /* Centrer le texte */
	font-size: 1em !important;
}
.ct-media-container {
    position: relative;
}
/* Texte "Cours standard" après le cours d'essai */
.standard-courses-label {
    width: 100%;
    text-align: center;
    margin: 30px 0 20px 0;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
}


/* Espacement spécial pour le produit trialLesson */
.woocommerce ul.products li.product.trial-lesson-product {
    margin-bottom: 40px !important;
    border: 1px solid #2c5aa0 !important;
    background: #f8f9ff !important;
    position: relative;
}

.woocommerce ul.products li.product.trial-lesson-product::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

/* Affichage en ligne pour les produits - Largeur limitée */
.woocommerce ul.products {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 920px;
    margin: 0 auto;
}

.woocommerce ul.products li.product-line-item {
    width: 100%;
    margin: 0;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Contenu de chaque ligne produit */
.product-line-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-main-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Icône produit */
.product-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.product-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
}

/* Informations produit */
.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-info .product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.3;
}

.product-info .product-subtitle {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #333;
    line-height: 1.5;
}

.product-info .product-description {
    font-size: 13px;
    font-weight: 300;
    margin: 0;
    color: #2c5aa0;
}

.product-info .product-price {
    display: flex;
    font-weight: 600 !important;
    align-items: center;
    gap: 10px;
}

.product-info .product-price .price,
.product-info .product-price .price .woocommerce-Price-amount {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #2c5aa0 !important;
}

/* Alignement des prix en promotion */
.product-info .product-price .price del,
.product-info .product-price .price ins {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.product-info .product-price .price del .woocommerce-Price-amount {
    font-size: 16px !important;
    color: #999 !important;
    text-decoration: line-through;
}

.product-info .product-price .price ins .woocommerce-Price-amount {
    font-size: 20px !important;
    color: #e74c3c !important;
    font-weight: 600 !important;
}

.product-info .product-price .sale-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 15px;
    font-weight: bold;
}

.product-info .product-portion {
    font-size: 12px;
    color: #666;
}

.product-info .portion-label {
    font-style: italic;
}

/* Actions par défaut (desktop) */
.desktop-actions {
    flex-shrink: 0;
}

.desktop-actions .button {
    padding: 8px 16px;
    font-size: 14px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.desktop-actions .button:hover {
    color: white;
}

.mobile-actions {
    display: none;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e1e1;
}

.mobile-actions .button {
    padding: 8px 16px;
    font-size: 14px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 200px;
    text-align: center;
}

.mobile-actions .button:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .product-main-content {
        gap: 15px;
    }
    
    .product-icon {
        width: 80px;
        height: 80px;
    }
    
    .product-icon img {
        width: 80px;
        height: 80px;
    }
    
    .product-info .product-title {
        font-size: 16px;
        text-align: left;
    }

    .product-info .product-description {
        font-size: 12px;
        font-weight: 300;
        margin: 0;
        color: #2c5aa0;
        text-align: left;
    }

    .product-info .product-subtitle {
        text-align: left;
        line-height: 1.5;
    }
    
    /* Masquer le bouton desktop et afficher le bouton mobile */
    .desktop-actions {
        display: none;
    }
    
    .mobile-actions {
        display: flex;
    }
    
    .mobile-actions .button {
        padding: 6px 12px;
        font-size: 12px;
    }
}
.ct-header-text[data-id="text"] .entry-content {
    text-align: right;
}

.ct-header-text[data-id="text"] .entry-content > div[style*="display: flex"] {
    justify-content: flex-end;
}

.wc-block-components-checkbox__label {
  display: inline !important; /* ou inline-block ou block, mais PAS flex */
  white-space: normal !important;
  line-height: 1.4;
}

/* Masque la navigation */
.woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Étend le contenu principal à 100% */
.woocommerce-account .woocommerce {
    display: block !important; /* ou flex selon le cas */
}

.woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
}

  .ct-acount-nav {
    display: none !important;
  }

.tilted-image {
    transform: rotate(4.5deg);
    max-width: 600px;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* CSS pour le nouveau style de panier */

/* Container principal des articles du panier */
.cart-items-container {
    margin-bottom: 2rem;
}

/* Wrapper de chaque article du panier */
.cart-item-wrapper {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cart-item-wrapper:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Contenu principal du produit */
.cart-product-content .product-main-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Image du produit dans le panier */
.cart-product-thumbnail {
    flex-shrink: 0;
    width: 80px;
}

.cart-product-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Informations du produit */
.cart-product-info {
    flex: 1;
    min-width: 0;
}

.cart-product-title {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.25rem 0;
    font-weight: 400;
}

.cart-product-name {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.cart-product-name a {
    color: #333;
    text-decoration: none;
}

.cart-product-name a:hover {
    color: #007cba;
}

.cart-product-price {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Contrôles du panier */
.cart-product-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Quantité */
.cart-product-quantity {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.quantity-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

.cart-product-quantity .quantity {
    margin: 0;
}

.cart-product-quantity input[type="number"] {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Sous-total */
.cart-product-subtotal {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-left: auto;
}

.subtotal-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

.subtotal-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* Bouton de suppression */
.cart-product-remove {
    margin-left: 1rem;
}

.cart-product-remove .remove {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s ease;
}

.cart-product-remove .remove:hover {
    background: #f8f9fa;
    color: inherit;
}

.cart-product-remove .ct-icon {
    width: 14px;
    height: 14px;
}

/* Actions du panier */
.cart-actions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-actions .coupon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
}

.cart-actions input[type="text"] {
    flex: 1;
    max-width: 200px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-actions .button {
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-item-wrapper {
        padding: 1rem;
    }
    
    .cart-product-content .product-main-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .cart-product-thumbnail {
        width: 80px;
        flex-shrink: 0;
    }
    
    .cart-product-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-product-quantity {
        align-items: center;
    }
    
    .cart-product-subtotal {
        margin-left: 0;
        align-items: center;
    }
    
    .cart-product-remove {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cart-actions .coupon {
        min-width: auto;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cart-actions input[type="text"] {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cart-product-controls {
        gap: 0.75rem;
    }
    
    .cart-product-quantity,
    .cart-product-subtotal {
        align-items: baseline;
    }
    
    .cart-product-remove .remove-text {
        display: none;
    }
}

/* Cours d'essai spécial */
.cart-item-wrapper.trial-lesson-product {
    border-color: #007cba;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

.cart-item-wrapper.trial-lesson-product .cart-product-name {
    color: #007cba;
}

.ct-customer-details {
    align-self: flex-start !important;
    padding: 30px !important;
    border: 2px solid var(--theme-border-color) !important;
    border-radius: 1px !important;
}

.woocommerce-order {
    max-width: 900px;
    margin: 0 auto;
}


@media (max-width: 1000px) {
  .ct-header-socials .ct-social-box {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  .ct-header-socials .ct-social-box a {
    flex-shrink: 0;
  }
}
