/**
 * Simple WooCommerce Loop Ads - Styles
 * Fichier: /css/style.css
 */

/* Base styles pour les cartes publicitaires */
.clp-ad-card {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.clp-ad-card .clp-ad-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 300px;
}

.clp-ad-card .clp-ad-content > div{
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Images et icônes */
.clp-card-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.clp-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.clp-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.clp-icon-large {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.clp-ad-card .logo_floa{
    max-width: 130px!important;
}

/* Typography */
.clp-ad-card p {
    font-size: 1rem;
	font-family: 'IvyStyleSans-Bold';
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.clp-ad-card span {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.6;
}

/* Buttons */
.clp-cta-button,
.clp-ad-card .button {
    background-color: #007cba;
    color: white;
    padding: 0.3rem 40%;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
	font-size: 0.9rem;
}

.clp-cta-button:hover,
.clp-ad-card .button:hover {
    background-color: #005a87;
    color: white;
}

/* Carte floa */
.clp-card-floa {
    background: #1d1d1d;
}

.clp-card-floa .clp-ad-content {
    color: white;
}

.clp-card-floa h3,
.clp-card-floa p {
    color: white;
}

.clp-card-floa .clp-cta-button {
    background-color: white;
    color: #1d1d1f;
}

.clp-card-floa .clp-cta-button:hover {
    background-color: #fe6f61;
}

/* Carte Newsletter */
.clp-card-newsletter {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
}

.clp-newsletter-form {
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
}

.clp-newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.clp-newsletter-form button {
    width: 100%;
}

/* Carte Shipping */
.clp-card-shipping {
    background-color: #e3f2fd;
}

.clp-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    text-align: left;
}

.clp-features li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.clp-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Carte demontage */
.clp-card-demontage {
    background-color: #fe6f61;
}

.clp-card-demontage img{
	max-width: 120px;
}

.clp-card-header {
    margin-bottom: 20px;
}

.clp-card-body {
    width: 100%;
	display: flex;
    flex-direction: column;
    align-items: center;
}

.clp-link {
    color: #fff;
    font-weight: 100;
	text-decoration: underline;
    text-underline-offset: 12px;
	font-size: 0.9rem;
	margin-top: 1rem;
	
}

.clp-link:hover {
    color: #1d1d1d;
}

/* Carte Default */
.clp-default-card {
    background-color: #f5f5f5;
    padding: 40px;
    border: 2px dashed #ddd;
}

/* Responsive - Assurer que les cartes s'adaptent à la grille WooCommerce */
@media (max-width: 768px) {
	.clp-ad-card{
		min-width: 100%!important;
	}
	
    .clp-ad-card .clp-ad-content {
        padding: 15px;
        min-height: 250px;
    }
    
    .clp-ad-card p {
        font-size: 20px;
    }
    
    .clp-ad-card span {
        font-size: 14px;
    }
    
    .clp-newsletter-form {
        max-width: 100%;
    }
}

/* Intégration avec différentes colonnes WooCommerce */
.columns-2 .clp-ad-card {
    width: 48%;
}

.columns-3 .clp-ad-card {
    width: 30.75%;
}

.columns-4 .clp-ad-card {
    width: 22.05%;
}

.columns-5 .clp-ad-card {
    width: 16.95%;
}

.columns-6 .clp-ad-card {
    width: 13.5%;
}

/* Fix pour certains thèmes qui utilisent flexbox */
.products.columns-3 .clp-ad-card,
.products.columns-4 .clp-ad-card {
    flex: 0 0 auto;
}

/* Animations supplémentaires */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clp-ad-card {
    animation: fadeIn 0.6s ease-out;
}

/* Styles pour les thèmes sombres */
body.dark-mode .clp-ad-card {
    background-color: #1d1d1d;
    color: #fff;
}

body.dark-mode .clp-ad-card p,
body.dark-mode .clp-ad-card span {
    color: #fff;
}

body.dark-mode .clp-default-card {
    background-color: #1d1d1d;
    border-color: #555;
}