/* Hero Savonnerie - Version flux normal - CORRIGÉ */
.hero-savonnerie-container {
    width: 100%;
    position: relative;
    background-color: white;
}

/* === SECTION HERO === */
.hero-section {
    width: 100%;
    position: relative;
}

.hero-background {
    height: 385px;
    background-image: url('../images/lms-bg.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-text {
    text-align: right;
    color: white;
    max-width: 600px;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    color:white;
    font-size: 31px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 0.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-text p {
    font-family: 'Outfit', sans-serif;
    font-size: 25px;
    margin: 0 0 30px 0;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
}

.btn-hero {
  font-family: 'Playfair Display', serif;
	display: inline-block;
	background: #e74c3c;
	color: white;
	padding: 5px 22px;
	text-decoration: none;
	border-radius: 10px;
	font-weight: 500;
	font-size: 25px;
	transition: all 0.3s ease;
	text-shadow: none;
	margin:5px;
  letter-spacing: 2px;
}
.btn-hero:hover {
    transform: translateY(-3px);
    color: white;
}

/* === SECTION LANGUETTES === */
.languettes-section {
    padding: 0 20px 80px 20px;
    transform: translateY(-95px); /* Réduit pour descendre les badges */
    margin-bottom: -95px;
}

/* Cacher la version mobile par defaut */
.languettes-mobile {
    display: none;
}

.languettes-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-top: 30px; 
}

.savon-item {
    display: flex;
    justify-content: center;
    position: relative;
}

/* CONTAINER PRINCIPAL - Gère le hover global */
.savon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    cursor: pointer;
    width: 100%;
    width: 270px;
    margin: 0 auto;
}

.savon-container:hover {
    transform: translateY(-10px) scale(1.05);
}

/* BADGE - Plus de positionnement absolu, dans le flow normal */
.savon-badge {
    width: 100%;
    background: #333;
    color: white;
    font-size: 13px;
    padding: 8px 12px 8px 12px;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 15px 15px 0 0;
    line-height: 1.3;
    margin-bottom: 0;
    box-sizing: border-box;
}

.savon-badge .badge-title {
    letter-spacing: 0.3px;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 20px;
}

.savon-badge .badge-subtitle {
    display: block;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    text-transform: none;
    letter-spacing: normal;
}

/* CIRCLE - Plus de hover séparé */
.savon-circle {
    width: 100%;
    height: 220px;
    background: white;
    border-radius: 0 0 50% 50%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Important pour l'image */
}

/* Shadow augmentée au hover global */
.savon-container:hover .savon-circle {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* IMAGE - Prend tout le circle */
.savon-image {
    height: 220px;
    border-radius: 0 0 50% 50%;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.savon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.savon-container:hover .savon-image img {
    transform: scale(1.1);
}

/* Couleurs des badges */
.savon-item:nth-child(1) .savon-badge { background: rgba(3, 78, 139, 1); }
.savon-item:nth-child(2) .savon-badge { background: rgba(3, 78, 139, 1); }
.savon-item:nth-child(3) .savon-badge { background: rgba(3, 78, 139, 1); }
.savon-item:nth-child(4) .savon-badge { background: rgba(3, 78, 139, 1); }

/* === LANGUETTES MOBILE === */
.languettes-mobile-wrapper {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
}

.savon-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.savon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.savon-card-content {
    display: flex;
    flex-direction: column;
}

.savon-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.savon-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.savon-card:hover .savon-card-image img {
    transform: scale(1.1);
}

.savon-card-info {
    padding: 12px;
    text-align: center;
    background: white;
}

.savon-card-info h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #001446;
    font-weight: 600;
}

.savon-card-info p {
    font-size: 12px;
    margin: 0;
    color: #666;
    line-height: 1.3;
}

/* Couleurs des cartes */
.savon-card:nth-child(1) .savon-card-info { border-top: 3px solid rgba(3, 78, 139, 1); }
.savon-card:nth-child(2) .savon-card-info { border-top: 3px solid rgba(3, 78, 139, 1); }
.savon-card:nth-child(3) .savon-card-info { border-top: 3px solid rgba(3, 78, 139, 1); }
.savon-card:nth-child(4) .savon-card-info { border-top: 3px solid rgba(3, 78, 139, 1); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-background {
        height: 400px;
        padding: 0 60px;
    }
    
    .hero-text h1 { font-size: 40px; }
    .hero-text p { font-size: 18px; }
    
    .languettes-section {
        transform: translateY(-75px); /* Réduit pour descendre */
        margin-bottom: -75px;
    }
    
    .languettes-wrapper {
        gap: 30px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding-top: 35px; /* Réduit pour descendre */
    }
    
    .savon-badge {
        width: 200px;
        padding: 10px 18px 6px 18px;
    }
    
    .savon-circle {
        width: 200px;
        height: 200px;
    }
    
    .savon-image {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-background {
        height: 350px;
        padding: 0 40px;
        justify-content: center;
    }

    .hero-content {
        justify-content: center;
    }

    .hero-text {
        text-align: center;
        max-width: 400px;
    }

    .hero-text h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    .hero-text p { font-size: 16px; }

    /* Cacher version desktop, afficher version mobile */
    .languettes-desktop {
        display: none;
    }

    .languettes-mobile {
        display: block;
        transform: translateY(0);
        margin-bottom: 0;
        padding: 40px 15px 60px 15px;
    }

    .btn-hero {
        padding: 8px 15px;
        font-size: 16px;
        margin: 3px;
    }
}

@media (max-width: 480px) {
    .hero-background {
        height: 300px;
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 26px;
        line-height: 1.2;
    }
    .hero-text p { font-size: 14px; }
    .btn-hero {  padding: 12px 24px; font-size: 14px; }

    /* Version mobile uniquement */
    .languettes-desktop {
        display: none;
    }

    .languettes-mobile {
        display: block;
        transform: translateY(0);
        margin-bottom: 0;
        padding: 30px 10px 50px 10px;
    }

    .savon-card-info h3 {
        font-size: 14px;
    }

    .savon-card-info p {
        font-size: 11px;
    }

    .btn-hero {
        padding: 6px 12px;
        font-size: 14px;
        margin: 2px;
    }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
    .savon-container {
        transition: none;
    }
    
    .savon-container:hover {
        transform: none;
    }
    
    .savon-image img {
        transition: none;
    }
    
    .savon-container:hover .savon-image img {
        transform: none;
    }
}
