* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ea66df 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Top Menu */
.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}
.menu-left   {
    margin: 0px auto;
     
}

.menu-left h1 {
    margin: 0;
    font-size: 1.8em;
}

.menu-right {
    display: flex;
    gap: 15px;
}

.menu-link {
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

@media (max-width: 768px) {
    .top-menu {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .menu-right {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Messaging Button */
.message-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.message-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 2px ;
    background: linear-gradient(135deg, #ea66df, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.message-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #764ba2, #ea669d);
}

.message-button:active {
    transform: translateY(0);
}

.message-icon {
    font-size: 1.2em !important  ;
}

.message-text {
    font-weight: 600;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.5em;
}

.presentation-text {
	background: linear-gradient(135deg, #f8f9ff, #dfdfdf);
	border: 1px solid #d5d6d8;
	border-radius: 8px;
	padding: 20px;
	/* margin-bottom: 30px; */
	color: #333;
	font-size: 1.1em;
	line-height: 1.6;
	text-align: center;
	box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
	margin: 0px auto;
	width: 90%;
	max-width: 50%;
	margin-bottom: 30px;
}

@media (max-width: 768px) {
	.presentation-text {
		width: 95%;
		max-width: 95%;
	}
}
#gallery-title {
    color: #ffffff;
    margin-bottom: 5px;
     
    border-bottom: 2px solid #667eea;
    padding: 5px 5px;
    background: rgba(30, 30, 30, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
#gallery-title span{
    font-size: 0.6em;
}
#gallery-title a{
     color: #f8f9ff;
     text-decoration: none;
     font-size: 1.2em;
}


/* Upload Section */
.upload-section {
    margin-bottom: 40px;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.upload-area:hover {
    background: #f0f2ff;
    border-color: #764ba2;
    transform: scale(1.02);
}

.upload-area.dragover {
    background: #e8eaff;
    border-color: #764ba2;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.upload-area p {
    color: #667eea;
    font-size: 1.1em;
    font-weight: 500;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    font-size: 0.9em;
    color: #667eea;
}

/* Gallery Section */
 
#sizeFilter {
	flex: 1;
	font-size: 0.75em;
	padding-right: 25px;
} 


 
#messageButton{
    flex: 0 0 auto;
}
/* Gallery Controls */
.gallery-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.control-btn.delete-btn {
    background: linear-gradient(135deg, #ff5c5c, #ff3b3b);
}

.control-btn.delete-btn:hover {
    background: linear-gradient(135deg, #ff3b3b, #ff1a1a);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 1.1em;
}

/* Checkbox Styles */
.checkbox-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.image-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.image-checkbox:hover {
    opacity: 1;
}

.checkbox-label {
    display: none;
}

.image-card.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

/* Image Card */
.image-card {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	border: 2px solid transparent;
	min-width: 278px;
	max-width: 280px;
	margin: 0 auto; /* Centre la carte horizontalement */
}

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

.image-card.dragging {
    opacity: 0.7;
    transform: scale(1.05);
}

.image-card.drag-over {
    border-color: #667eea;
    background: #f8f9ff;
}

/* Image Container */
.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reservation Badge */
.reservation-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 0, 0, 0.85);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Delete Button */
.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 59, 48, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.image-card:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: rgba(255, 59, 48, 1);
    transform: scale(1.1);
}

/* Copy Button */
.copy-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.image-card:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.1);
}

/* Image Info */
.image-info {
    padding: 5px;
    margin-bottom: 5px;
    margin-left: 5px;
    margin-right: 5px;
}

.image-name {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 10px;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weight-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weight-label {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
}

.weight-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

.weight-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

/* Style pour les select */
select {
     
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    height: 40px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    
    box-sizing: border-box;
}

select:hover {
    border-color: #ccc;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

/* Style pour les options des select */
select option {
    padding: 10px;
    background: white;
    color: #333;
    font-size: 1em;
}

select option:hover {
    background: #f0f2ff;
}

select option:checked {
    background: #667eea;
    color: white;
}

/* Styles pour la section taille et message dans les cartes produits */
.weight-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.taille-select {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    height: 36px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23666' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
    box-sizing: border-box;
}

.taille-select:hover {
    border-color: #ccc;
}

.taille-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.message-product-btn {
    flex: 0 0 auto;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ea66df, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #764ba2, #ea669d);
}

.message-product-btn:active {
    transform: translateY(0);
}

.weight-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .upload-area {
        padding: 25px;
    }
    
    /* Ajuster la largeur du div fb-page pour les appareils mobiles */
    .fb-page {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #facebookPage {
        padding: 0;
    }
    
    /* Correction de l'espacement des cartes d'image sur mobile */
    .image-card {
        margin: 0 auto;
        padding: 0;
    }
}

/* iPhone 12/13 specific */
@media (max-width: 420px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
}

/* iPhone 12/13 Pro Max specific */
@media (max-width: 430px) and (min-width: 421px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 12px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Réduire la taille du bouton sur mobile */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Alert Notifications */
.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 1em;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.fade-out {
    opacity: 0;
}
  
/* Styles pour les pages lgales */  
.legal-page,  
.privacy-page {  
    max-width: 800px;  
    margin: 20px auto;  
    padding: 20px;  
    background-color: white;  
    border-radius: 8px;  
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);  
}  
.legal-page h1,  
.privacy-page h1 {  
    color: #333;  
    border-bottom: 2px solid #eee;  
    padding-bottom: 10px;  
    margin-bottom: 20px;  
}  
.legal-page h2,  
.privacy-page h2 {  
    color: #555;  
    margin-top: 25px;  
    margin-bottom: 15px;  
}  
.legal-page p,  
.privacy-page p {  
    line-height: 1.6;  
    margin-bottom: 15px;  
}  
.legal-page ul,  
.privacy-page ul {  
    margin-left: 20px;  
    margin-bottom: 15px;  
}  
.legal-page li,  
.privacy-page li {  
    margin-bottom: 8px;  
    line-height: 1.5;  
}  
.main-footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #eaeaea;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-info {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Amélioration de l'affichage du footer sur mobile */
@media (max-width: 768px) {
    .main-footer {
        padding: 15px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px;
    }
    
    .footer-links a {
        display: block;
        padding: 8px 12px;
        background: #e9ecef;
        border-radius: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .footer-info {
        width: 100%;
        text-align: center;
    }
}

/* Style pour les éléments radio au survol */
input[type="radio"]:hover {
    cursor: pointer;
}

/* Style pour les labels des éléments radio au survol */
input[type="radio"] + label:hover {
    cursor: pointer;
}

/* Style général pour tous les labels contenant des radio buttons */
label:has(input[type="radio"]) {
    cursor: pointer;
}

/* Alternative pour les navigateurs qui ne supportent pas :has() */
label.radio-label {
    cursor: pointer;
}

input[type="radio"].radio-input {
    cursor: pointer;
}

/* Message affiché quand aucune image ne correspond à la taille sélectionnée */
.no-images-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #666;
    font-style: italic;
}

/* Centrer l'intégration Facebook */
#facebookPage {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 30px 0;
    padding: 0 10px;
}

.fb-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
}
