/* styles.css */
body {
    font-family: tinos; /* Police arrondie */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f0dff2; /* Fond rose clair */
}

header {
    background: #f4f4f4;
    padding: 20px;
    text-align: center; /* Centre le texte de l'en-tête */
}

header h1 {
    margin: 0; /* Supprime la marge par défaut */
}

.logo img {
    max-width: 150px;
}

.tarif-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.tarif-list li {
    background: #fff;
    margin: 15px 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarif-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tarif-list strong {
    color: #333;
    font-size: 1.1em;
    flex: 1;
}

.price {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: #e83e8c;
    margin: 0 15px;
    font-size: 1.2em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn.add-to-cart {
    background: #e83e8c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 500;
}

.btn.add-to-cart:hover {
    background: #d62e7c;
    transform: scale(1.05);
}

/* Style pour la notification */
#notification {
    text-align: center;
    padding: 10px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 5px;
    background: #e8f5e9;
    color: #2e7d32;
    display: none;
}

/* Style pour l'image du service */
.service-image {
    text-align: center;
    height: 400px; /* Hauteur fixe uniforme sur tous les appareils */
    overflow: hidden;
    margin: 20px 0;
    flex: 1; /* Prend l'espace restant */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Pour l'overlay */
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Affiche l'image entière sans zoom */
    filter: blur(4px);
    border-radius: 8px; /* Coins arrondis pour les images */
    background-color: #f5f5f5; /* Fond gris clair pour les espaces vides */
}

.service-page-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* Affiche l'image entière */
    filter: none;
}

.service-image .service-page-image {
    filter: none !important;
}

nav {
    display: flex; /* Utilise Flexbox pour le conteneur du menu */
    justify-content: center; /* Centre les éléments horizontalement */
    background-color: #f4f4f4; /* Couleur de fond du menu */
    padding: 10px 0; /* Espacement autour du menu */
}

/* Styles pour les liens du menu */
nav ul {
    display: flex; /* Utilise Flexbox pour le menu */
    list-style: none; /* Supprime les puces */
    padding: 0; /* Supprime le padding */
    margin: 0; /* Supprime la marge */
}
nav a {
    text-decoration: none; /* Supprime le soulignement */
    color: #a00e8c; /* Couleur du texte */
    font-weight: bold; /* Texte en gras */
}

nav ul li {
    display: inline; /* Affiche les éléments en ligne */
    margin: 0 15px; /* Espace entre les éléments */
}

/* Ajout d'un style pour centrer le texte des tarifs */
.main-content {
    text-align: center; /* Centre tout le contenu principal */
}

/* Styles pour les liens du menu de navigation */
nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 40px;
    border: 1.5px solid #a00e8c; /* Contour rose fuchsia */
    background: linear-gradient(90deg, #a00e8c 0%, #c71585 100%); /* Dégradé rose fuchsia */
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 24px rgba(160, 14, 140, 0.25);
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s, border-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    opacity: 1;
    background-clip: padding-box;
}

nav ul li a:hover {
    background: linear-gradient(90deg, #c71585 0%, #a00e8c 100%); /* Dégradé inversé au survol */
    color: white;
    border-color: #c71585;
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 8px 32px rgba(160, 14, 140, 0.35);
    opacity: 1;
}

/* Responsive pour la navigation */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 8px; /* Espacement réduit entre les boutons */
        padding: 10px 0; /* Padding réduit */
    }

    nav ul li {
        margin: 0;
        width: 80%;
        max-width: 250px;
    }

    nav ul li a {
        width: 100%;
        justify-content: center;
        padding: 12px 18px; /* Padding réduit */
        font-size: 1em; /* Taille de police réduite */
        margin: 2px 0; /* Marge réduite */
        background: linear-gradient(90deg, #a00e8c 0%, #c71585 100%) !important;
        border-color: #a00e8c !important;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    nav ul {
        gap: 6px; /* Espacement encore plus réduit */
        padding: 8px 0; /* Padding encore plus réduit */
    }

    nav ul li {
        width: 90%;
        max-width: 280px;
    }

    nav ul li a {
        padding: 10px 16px; /* Padding encore plus réduit */
        font-size: 0.95em; /* Taille de police légèrement réduite */
        margin: 1px 0; /* Marge minimale */
        background: linear-gradient(90deg, #a00e8c 0%, #c71585 100%) !important;
        border-color: #a00e8c !important;
    }
}

/* Pour les écrans moyens (tablettes) */
@media (min-width: 769px) and (max-width: 1024px) {
    nav ul {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    nav ul li {
        margin: 5px;
    }
    
    nav ul li a {
        background: linear-gradient(90deg, #a00e8c 0%, #c71585 100%) !important; /* Rose fuchsia sur tablette */
        border-color: #a00e8c !important;
    }
}

#hero {
    background: #e2e2e2;
    padding: 50px 0;
    text-align: center;
}

#services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px;
    gap: 20px;
}

.service {
    position: relative;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    overflow: hidden;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    max-width: 300px;
    flex: 1 1 300px;
    min-height: 400px; /* Hauteur minimale fixe */
    display: flex;
    flex-direction: column;
}

.service:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.service h3,
#services .service h3 {
    color: #ffffff; /* Texte blanc */
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 10px 15px;
    background: transparent; /* Fond transparent */
    border: 2px solid #ffffff; /* Contour blanc */
    border-radius: 6px;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: visible;
    text-decoration: none !important;
}

.service h3:hover,
#services .service h3:hover {
    background: rgba(255, 255, 255, 0.1); /* Fond légèrement opaque au survol */
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    text-decoration: none !important;
}

.service ul {
    list-style: none;
    padding: 0;
}

.service li {
    margin: 10px 0;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 20px auto;
}

form label {
    margin: 10px 0 5px;
}

form input, form textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    padding: 10px;
    background: #a00e8c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #E6B3FF;
}

footer {
    text-align: center;
    padding: 20px 0;
    background: #f4f4f4;
    margin-top: 20px;
}

#about, #contact {
    padding: 20px;
    margin: 40px auto; /* Ajoute une marge supérieure et inférieure */
    max-width: 800px; /* Limite la largeur pour un meilleur rendu */
    text-align: center; /* Centre le texte */
    background-color: #fff; /* Fond blanc pour les sections */
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre pour les sections */
}

h2 {
    font-size: 2em; /* Taille de police pour les titres */
    margin-bottom: 20px; /* Espace en bas des titres */
    text-align: center; /* Centre le titre */
    color: #a00e8c; /* Couleur rose pour les titres */
}

h4 {
    font-size: 1em; /* Taille de police pour les titres */
    margin-bottom: 20px; /* Espace en bas des titres */
    text-align: center; /* Centre le titre */
    color: #a00e8c; /* Couleur rose pour les titres */
}

p {
    font-size: 16px; /* Taille de police pour les paragraphes */
    line-height: 1.6; /* Hauteur de ligne pour une meilleure lisibilité */
    color: #333; /* Couleur du texte */
    margin: 0 0 20px; /* Espace en bas des paragraphes */
}

/* Styles pour la modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.services-preview {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-size: 1.2em; /* Taille réduite pour correspondre au h3 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 1;
    width: auto; /* Largeur automatique */
    padding: 10px; /* Padding réduit */
    min-width: fit-content; /* Largeur minimale adaptée au contenu */
}

.services-link {
    text-decoration: none; /* Supprime le soulignement */
    color: #ffffff; /* Couleur du texte */
    font-weight: bold; /* Texte en gras */
    padding: 10px 20px; /* Espacement interne */
    border: 2px solid #a00e8c; /* Bordure de couleur violet fuchsia */
    transition: background-color 0.3s, color 0.3s, transform 0.3s; /* Transition pour le survol */
    display: inline-flex; /* Permet d'utiliser flexbox pour centrer le contenu */
    align-items: center; /* Centre le contenu verticalement */
    justify-content: center; /* Centre le contenu horizontalement */
    background: linear-gradient(to bottom, #a00e8c, #c2a1c2); /* Dégradé pour un effet de reflet */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19); /* Ombre pour un effet 3D */
}

.services-link:hover {
    background-color: #e91e63; /* Couleur de fond rose au survol */
    color: white; /* Couleur du texte au survol */
    transform: translateY(-2px); /* Légère élévation au survol */
}

.highlight {
    color: #a00e8c; /* Couleur rose pour le texte en gras */
}

#appointment {
    background-color: white; /* Définit le fond blanc */
    text-align: center; /* Centre le texte dans la section */
    padding: 40px 20px; /* Ajoute un espacement autour de la section */
    margin: 20px auto; /* Centre la section dans son conteneur */
    max-width: 800px; /* Limite la largeur de la section pour un meilleur rendu */
    border-radius: 10px; /* Ajoute des coins arrondis si souhaité */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ajoute une ombre pour un effet de profondeur */
}

.success-message {
    text-align: center;
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
}

.success-message h2 {
    color: #4CAF50;
    margin-bottom: 20px;
}

.return-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.return-button:hover {
    background-color: #45a049;
}

/* Styles pour les boutons */
.btn, .services-link {
    border-radius: 40px; /* Bords très arrondis */
    background: linear-gradient(90deg, #a00e8c 0%, #c71585 100%); /* Dégradé rose fuchsia */
    color: #fff;
    border: 1.5px solid #a00e8c; /* Contour rose fuchsia */
    backdrop-filter: blur(6px); /* Effet glassmorphism */
    box-shadow: 0 4px 24px rgba(160, 14, 140, 0.25);
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
    font-weight: 600;
    font-size: 1.1em;
    padding: 14px 32px;
    opacity: 0.95;
    text-decoration: none;
}

.btn:hover, .services-link:hover {
    background: linear-gradient(90deg, #c71585 0%, #a00e8c 100%); /* Dégradé inversé au survol */
    color: #fff;
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 8px 32px rgba(160, 14, 140, 0.35);
    opacity: 1;
}

/* Bouton Ajouter au panier */
.add-to-cart {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.add-to-cart:hover {
    background: linear-gradient(45deg, #ff5252, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Bouton Payer l'acompte */
.checkout-button {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    padding: 15px 30px;
    font-size: 16px;
    display: block; /* Pour permettre le centrage */
    margin: 20px auto; /* Centre le bouton horizontalement */
    text-align: center; /* Centre le texte */
    text-decoration: none; /* Retire le soulignement */
    border-radius: 25px; /* Coins arrondis */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 300px; /* Largeur maximale */
}

.checkout-button:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    text-decoration: none; /* Retire le soulignement au survol */
}

/* Responsive pour le bouton checkout */
@media (max-width: 768px) {
    .checkout-button {
        width: 80%; /* Largeur sur mobile */
        max-width: 250px;
        margin: 20px auto;
        font-size: 14px;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .checkout-button {
        width: 90%; /* Largeur sur très petits écrans */
        max-width: 200px;
        margin: 15px auto;
        font-size: 13px;
        padding: 10px 20px;
    }
}

.item-name {
    font-weight: bold;
    margin-right: 10px;
}

.item-price {
    color: #666;
    margin-right: 10px;
}

.quantity {
    background-color: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin: 0 5px;
}

.remove-item {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.remove-item:hover {
    color: #ff5252;
}

/* Styles pour le formulaire de facturation */
.checkout-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center; /* Centre le contenu du formulaire */
}

.form-group {
    margin-bottom: 15px;
    text-align: center; /* Centre chaque groupe de champs */
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center; /* Centre les labels */
}

.form-group input {
    width: 80%; /* Largeur réduite */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 auto; /* Centre les champs horizontalement */
    display: block; /* Permet l'utilisation de margin auto */
}

.form-group input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.error-message {
    color: #ff0000;
    font-size: 0.8em;
    margin-top: 5px;
    display: none;
    text-align: center; /* Centre les messages d'erreur */
}

.form-group input:invalid {
    border-color: #ff0000;
}

.form-group input:valid {
    border-color: #4CAF50;
}

/* Responsive pour les champs du formulaire */
@media (max-width: 768px) {
    .form-group input {
        width: 85%; /* Légèrement plus large sur mobile */
    }
}

@media (max-width: 480px) {
    .form-group input {
        width: 90%; /* Encore plus large sur très petits écrans */
    }
}

/* Styles pour le diaporama */
.hero-banner {
    background: linear-gradient(135deg, #f8bbd9 0%, #e1bee7 25%, #ce93d8 50%, #ba68c8 75%, #ab47bc 100%);
    padding: 80px 20px;
    text-align: center;
    color: #5a2a47;
    font-family: serif;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-banner .slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

.hero-banner .slides-wrapper {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.hero-banner .slide {
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
}

.hero-banner .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 30px 30px;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 187, 217, 0.2) 0%, rgba(225, 190, 231, 0.2) 25%, rgba(206, 147, 216, 0.2) 50%, rgba(186, 104, 200, 0.2) 75%, rgba(171, 71, 188, 0.2) 100%);
    z-index: 3;
    border-radius: 0 0 30px 30px;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 800px;
    margin: 0 auto;
}

.hero-banner .slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease;
}

.hero-banner .slide-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.hero-banner .prev {
    left: 20px;
}

.hero-banner .next {
    right: 20px;
}

.hero-banner .slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-banner .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-banner .dot.active {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Responsive pour le diaporama */
@media (max-width: 768px) {
    .hero-banner {
        padding: 60px 15px;
        border-radius: 0 0 20px 20px;
        min-height: 300px;
    }
    
    .hero-banner .slideshow-container,
    .hero-banner .slide img,
    .hero-banner::after {
        border-radius: 0 0 20px 20px;
    }
    
    /* Masquer les boutons de flèches sur mobile */
    .hero-banner .slide-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 50px 10px;
        min-height: 250px;
    }
    
    /* Masquer les boutons de flèches sur très petits écrans */
    .hero-banner .slide-btn {
        display: none !important;
    }
}

/* Styles pour les boutons de contact */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 40px;
    border: 1.5px solid #a00e8c; /* Contour rose fuchsia */
    background: linear-gradient(90deg, #a00e8c 0%, #c71585 100%); /* Dégradé rose fuchsia */
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 24px rgba(160, 14, 140, 0.25);
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s, border-color 0.3s;
    font-size: 1em;
    opacity: 1;
    background-clip: padding-box;
    margin: 5px;
}

.contact-button:hover {
    background: linear-gradient(90deg, #c71585 0%, #a00e8c 100%); /* Dégradé inversé au survol */
    color: white;
    border-color: #c71585;
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 8px 32px rgba(160, 14, 140, 0.35);
    opacity: 1;
}

/* Pour les écrans plus petits */
@media screen and (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
  
    .contact-button {
        width: 80%;
        justify-content: center;
        background: linear-gradient(90deg, #a00e8c 0%, #c71585 100%) !important; /* Rose fuchsia sur mobile */
        border-color: #a00e8c !important;
    }
    
    .btn, .services-link {
        background: linear-gradient(90deg, #a00e8c 0%, #c71585 100%) !important; /* Rose fuchsia sur mobile */
        border-color: #a00e8c !important;
    }
}

/* Styles spécifiques pour les écrans plus larges (PC) */
@media screen and (min-width: 769px) {
    .email-button {
        flex-basis: 60%;
        max-width: 300px;
    }
}

/* Styles pour les autres éléments */
footer {
    text-align: center;
    padding: 20px 0;
    background: #f4f4f4;
    margin-top: 20px;
}

img {
    border-radius: 8px;
}

/* Styles pour la galerie */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 20px; /* Espace entre les images */
    padding: 20px;
    max-width: 1200px; /* Largeur maximale pour centrer */
    margin: 0 auto; /* Centre la galerie */
}

.gallery-item {
    width: 100%;
    height: 300px; /* Hauteur fixe pour uniformiser */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Affiche l'image entière sans zoom */
    transition: transform 0.3s ease;
    background-color: #f5f5f5; /* Fond gris clair pour les espaces vides */
}

.gallery-item:hover img {
    transform: scale(1.05); /* Zoom léger au survol */
}

/* Responsive pour la galerie */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
        gap: 15px;
        padding: 15px;
    }
    
    .gallery-item {
        height: 250px; /* Hauteur uniforme sur tablette */
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
        gap: 15px;
        padding: 15px;
    }
    
    .gallery-item {
        height: 300px; /* Hauteur uniforme sur mobile */
    }
}

/* Pour les très petits écrans */
@media (max-width: 360px) {
    .gallery-container {
        gap: 10px;
        padding: 10px;
    }
    
    .gallery-item {
        height: 280px; /* Hauteur légèrement réduite */
    }
}

/* Styles pour la modal de la galerie */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Styles pour les services */
#services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px;
    gap: 20px;
}

.service {
    position: relative;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    overflow: hidden;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    max-width: 300px;
    flex: 1 1 300px;
    min-height: 400px; /* Hauteur minimale fixe */
    display: flex;
    flex-direction: column;
}

.service:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.service h3,
#services .service h3 {
    color: #ffffff; /* Texte blanc */
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 10px 15px;
    background: transparent; /* Fond transparent */
    border: 2px solid #ffffff; /* Contour blanc */
    border-radius: 6px;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: visible;
    text-decoration: none !important;
}

.service h3:hover,
#services .service h3:hover {
    background: rgba(255, 255, 255, 0.1); /* Fond légèrement opaque au survol */
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    text-decoration: none !important;
}

.service ul {
    list-style: none;
    padding: 0;
}

.service li {
    margin: 10px 0;
}

/* Styles pour les images de service */
.service-image {
    text-align: center;
    height: 400px; /* Hauteur fixe uniforme sur tous les appareils */
    overflow: hidden;
    margin: 20px 0;
    flex: 1; /* Prend l'espace restant */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Pour l'overlay */
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Affiche l'image entière sans zoom */
    filter: blur(4px);
    border-radius: 8px; /* Coins arrondis pour les images */
    background-color: #f5f5f5; /* Fond gris clair pour les espaces vides */
}

.service-page-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* Affiche l'image entière */
    filter: none;
}

.service-image .service-page-image {
    filter: none !important;
}

/* Responsive pour les services - avec plus de spécificité */
@media (max-width: 768px) {
    .service {
        max-width: 100%;
        flex: 1 1 100%;
        min-height: 450px;
    }
    
    .service-image {
        height: 400px;
    }
    
    .service h3,
    #services .service h3 {
        font-size: 1.4em !important; /* Taille intermédiaire */
        padding: 12px 18px !important; /* Padding intermédiaire */
        letter-spacing: 1.2px !important;
        margin: 12px 0 !important;
        border-width: 2.5px !important; /* Contour intermédiaire */
        line-height: 1.3 !important;
        text-decoration: none !important;
        background: transparent !important;
        border-color: #ffffff !important;
    }
    
    .overlay {
        font-size: 1.4em !important;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .service {
        min-height: 450px;
    }
    
    .service-image {
        height: 400px;
    }
    
    .service h3,
    #services .service h3 {
        font-size: 1.3em !important; /* Taille intermédiaire */
        padding: 10px 15px !important; /* Padding intermédiaire */
        letter-spacing: 1px !important;
        margin: 10px 0 !important;
        border-width: 2.5px !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
        background: transparent !important;
        border-color: #ffffff !important;
    }
    
    .overlay {
        font-size: 1.3em !important;
        padding: 10px;
    }
}

/* Pour les très petits écrans (moins de 360px) */
@media (max-width: 360px) {
    .service {
        min-height: 450px;
    }
    
    .service-image {
        height: 400px;
    }
    
    .service h3,
    #services .service h3 {
        font-size: 1.2em !important; /* Taille intermédiaire */
        padding: 8px 12px !important; /* Padding intermédiaire */
        letter-spacing: 0.8px !important;
        margin: 8px 0 !important;
        border-width: 2px !important;
        line-height: 1.1 !important;
        text-decoration: none !important;
        background: transparent !important;
        border-color: #ffffff !important;
    }
    
    .overlay {
        font-size: 1.2em !important;
        padding: 8px;
    }
}

/* Styles pour les autres éléments */
footer {
    text-align: center;
    padding: 20px 0;
    background: #f4f4f4;
    margin-top: 20px;
}

img {
    border-radius: 8px;
}

/* Styles pour les formulaires */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 20px auto;
}

form label {
    margin: 10px 0 5px;
}

form input, form textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    padding: 10px;
    background: #a00e8c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #E6B3FF;
}

/* Responsive pour les boutons de services */
@media (max-width: 768px) {
    .service h3,
    #services .service h3 {
        font-size: 1em;
        padding: 8px 12px;
        letter-spacing: 0.5px;
    }
    
    .overlay {
        font-size: 1em;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .service h3,
    #services .service h3 {
        font-size: 0.9em;
        padding: 6px 10px;
        letter-spacing: 0.3px;
    }
    
    .overlay {
        font-size: 0.9em;
        padding: 6px;
    }
}

/* Styles pour les liens de services - retirer le soulignement */
.service a,
#services .service a {
    text-decoration: none !important;
}

.service a:hover,
#services .service a:hover {
    text-decoration: none !important;
}

/* Styles pour la page du panier */
.cart-container {
    max-width: 100%; /* Utilise toute la largeur disponible */
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: visible; /* Supprime le défilement horizontal */
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: #f1f3f4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin: 0;
}

.item-price {
    color: #666;
    font-size: 1em;
    text-align: center;
    margin: 0;
}

.quantity {
    background-color: #a00e8c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.remove-item {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
}

.remove-item:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Total du panier */
.cart-total {
    display: flex;
    flex-direction: column; /* Change en colonne pour mieux organiser les informations */
    align-items: center;
    padding: 20px;
    background: #e9ecef;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    gap: 10px; /* Espace entre les éléments */
}

.cart-total .total-amount {
    color: #a00e8c;
    font-size: 1.3em;
}

.cart-total .payment-info {
    font-size: 0.9em;
    color: #666;
    font-weight: normal;
    font-style: italic;
    text-align: center;
    margin-top: 5px;
    padding: 8px 15px;
    background: rgba(160, 14, 140, 0.1);
    border-radius: 5px;
    border-left: 3px solid #a00e8c;
}

/* Responsive pour le total du panier */
@media (max-width: 768px) {
    .cart-total {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 15px;
    }
    
    .cart-total .payment-info {
        font-size: 0.85em;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .cart-total {
        padding: 12px;
        gap: 6px;
    }
    
    .cart-total .payment-info {
        font-size: 0.8em;
        padding: 5px 10px;
    }
}

/* Message panier vide */
.empty-cart {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.2em;
}

/* Responsive pour le panier */
@media (max-width: 768px) {
    .cart-container {
        padding: 15px;
        margin: 10px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .item-name {
        font-size: 1.2em;
        margin-bottom: 5px;
    }
    
    .item-price {
        font-size: 1.1em;
        margin-bottom: 5px;
    }
    
    .quantity {
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .remove-item {
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
    }
    
    .cart-total {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cart-container {
        padding: 10px;
        margin: 5px;
    }
    
    .item-name {
        font-size: 1.1em;
    }
    
    .remove-item {
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* Styles pour les éléments générés dynamiquement dans le panier */
#cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%; /* Utilise toute la largeur */
}

#cart-items .cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 120px; /* Suppression des colonnes quantité et total */
    gap: 20px; /* Espacement raisonnable */
    align-items: start; /* Alignement en haut pour permettre le retour à la ligne */
    padding: 20px; /* Padding augmenté */
    margin: 15px 0; /* Marge augmentée entre les articles */
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

#cart-items .cart-item:hover {
    background: #f1f3f4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#cart-items .item-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin: 0;
    text-align: left;
    padding-right: 15px; /* Padding augmenté */
    word-wrap: break-word; /* Permet le retour à la ligne */
    overflow-wrap: break-word; /* Pour les navigateurs plus récents */
    hyphens: auto; /* Césure automatique si nécessaire */
    line-height: 1.3; /* Espacement des lignes */
}

#cart-items .item-price {
    color: #666;
    font-size: 1em;
    text-align: center;
    margin: 0;
    align-self: center; /* Centre verticalement */
}

#cart-items .remove-item {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 10px 15px; /* Padding augmenté */
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100px; /* Largeur adaptée */
    text-align: center;
    justify-self: center; /* Centre dans sa colonne */
    align-self: center; /* Centre verticalement */
}

#cart-items .remove-item:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Responsive pour les éléments générés dynamiquement */
@media (max-width: 1024px) {
    .cart-container {
        padding: 15px;
        margin: 10px;
    }
    
    #cart-items .cart-item {
        grid-template-columns: 3.5fr 1fr 110px; /* Ajustement pour écrans moyens */
        gap: 15px;
    }
    
    #cart-items .remove-item {
        width: 90px;
    }
}

@media (max-width: 768px) {
    .cart-container {
        padding: 15px;
        margin: 10px;
    }
    
    #cart-items .cart-item {
        grid-template-columns: 1fr;
        gap: 15px; /* Espacement maintenu sur mobile */
        text-align: center;
        align-items: center;
        padding: 15px; /* Padding réduit sur mobile */
        margin: 12px 0; /* Marge réduite sur mobile */
    }
    
    #cart-items .item-name {
        font-size: 1.2em;
        margin-bottom: 8px; /* Marge augmentée */
        text-align: center;
        padding-right: 0;
    }
    
    #cart-items .item-price {
        font-size: 1.1em;
        margin-bottom: 8px; /* Marge augmentée */
    }
    
    #cart-items .remove-item {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
        justify-self: center; /* Centre sur mobile */
    }
}

@media (max-width: 480px) {
    .cart-container {
        padding: 10px;
        margin: 5px;
    }
    
    #cart-items .cart-item {
        padding: 12px; /* Padding réduit sur très petits écrans */
        margin: 10px 0; /* Marge réduite */
    }
    
    #cart-items .item-name {
        font-size: 1.1em;
    }
    
    #cart-items .remove-item {
        padding: 12px 18px; /* Padding augmenté */
        font-size: 1em;
    }
}

/* Section planning de réservation */
.reservation-section {
    margin: 30px 0 20px 0;
    padding: 25px 20px;
    background: linear-gradient(90deg, #f8bbd9 0%, #e1bee7 100%);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(160, 14, 140, 0.08);
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.reservation-section h3 {
    color: #a00e8c;
    font-size: 1.4em;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.reservation-fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.reservation-fields label {
    font-weight: 600;
    color: #5a2a47;
    margin-right: 4px;
}

.reservation-fields input[type="date"],
.reservation-fields input[type="time"] {
    padding: 7px 10px;
    border: 1.5px solid #a00e8c;
    border-radius: 8px;
    font-size: 1em;
    background: #fff;
    color: #a00e8c;
    outline: none;
    transition: border 0.2s;
}

.reservation-fields input[type="date"]:focus,
.reservation-fields input[type="time"]:focus {
    border: 2px solid #c71585;
}

#reserve-btn {
    margin-top: 10px;
    min-width: 180px;
}

#reservation-message {
    margin-top: 12px;
    font-size: 1em;
    color: #4CAF50;
    font-weight: 600;
}

@media (max-width: 600px) {
    .reservation-section {
        padding: 15px 5px;
        max-width: 98vw;
    }
    .reservation-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    #reserve-btn {
        min-width: 100%;
    }
}