/* Variables */
:root {
    --primary-color: #7EAAA3;
    --secondary-color: #F8F5E4;
    --accent-color: #D3B88C;
    --text-color: #3E4A47;
    --light-text: #6E7975;
    --hover-color: #5A8D85;
    --primary-color-transparent: rgba(126, 170, 163, 0.8);
}

/* Reset et typographie */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Raleway', sans-serif; }
h1, h2, h3, .logo { font-family: 'Quicksand', sans-serif; font-weight: 300; }
body {
    color: var(--text-color);
    background-color: var(--secondary-color);
    /*background-image: linear-gradient(rgba(0, 0, 0, 0.1),rgba(0, 0, 0, 0.1)),url('assets/bg1-min.jpg');*/
	background-image: url('assets/bg1-min.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    line-height: 1.6;
    padding-top: 250px;
}

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-container {
    background-color: rgba(255, 255, 255, .9);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    margin: 35px auto;
    padding: 30px;
    min-height: 65vh; /* ex 65*/
}

/* Header et navigation */
header {
    background-color: transparent;
    color: var(--text-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background .3s ease;
}

.banner { position: relative; width: 100%; height: 200px; overflow: hidden; }
.banner-image { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.banner-overlay {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    transition: all 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.1);
}
.banner-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--primary-color), rgba(126, 170, 163, 0.9));
    opacity: var(--scroll-opacity, 0.2);
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}
.banner-overlay.fully-scrolled { background-color: transparent; }
.banner-overlay h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .7);
}
.banner-overlay p {
    font-size: 24px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .7);
    max-width: 80%;
    line-height: 1.4;
}

/* Navigation */
nav {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
nav ul { display: flex; justify-content: center; list-style: none; flex-wrap: wrap; }
nav ul li { margin: 0 15px; }
nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all .3s ease;
    display: flex;
    align-items: center;
}
.nav-text { margin-left: 5px; }
nav ul li a:hover, nav ul li a.active {
    background-color: var(--primary-color);
    color: #fff;
}
.nav-icon { display: inline-block; font-size: 18px; }

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1090;
    padding-top: 70px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}
.mobile-menu.active { right: 0; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { padding: 0; margin: 15px 0; }
.mobile-menu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}
.mobile-menu a:hover, .mobile-menu a.active {
    background-color: var(--primary-color);
    color: #fff;
}
.mobile-menu .nav-icon { margin-right: 15px; font-size: 20px; }
.mobile-menu .nav-text { display: block; }
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1080;
    display: none;
}
.mobile-menu-overlay.active { display: block; }

/* Page Content */
.page-content { 
	opacity: 1; 
	transition: opacity .5s ease; 	
}
.page-content.fade { opacity: 0; }
.page-content h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
}
.page-content p { margin-bottom: 15px; line-height: 1.3; }

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: #fff;
    text-align: right;
    padding: 60px 20px;
    padding-right: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    background-image: linear-gradient(120deg, var(--primary-color), var(--hover-color));
}
.hero-section h2 { font-size: 32px; margin-bottom: 15px; }
.hero-section p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    margin-left: auto;
}

/* Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transition: transform .3s ease;
}
.card:hover { transform: translateY(-5px); }
.card-content { padding: 25px; }
.card h3 { color: var(--primary-color); margin-bottom: 10px; }
.icon-container {
    background-color: var(--accent-color);
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -20px auto 15px;
    font-size: 32px;
}
.card-content p > i { color: var(--primary-color-transparent); }
.card-content img[src*="Logo_Acupression_Clean.png"] {
    width: 40%;
    float: right;
    margin-top: 10px;
    margin-right: 10px;
}

/* Profile Card */
.profile-card { display: flex; flex-direction: row; align-items: center; text-align: left; min-height: 30vh; }
.profile-image-container { flex: 0 0 auto; display: flex; justify-content: center; }

.profile-card_R { display: flex; flex-direction: row; align-items: center; text-align: right; min-height: 30vh; }
.profile-image-container_R { flex: 0 0 auto; display: flex; justify-content: center; }
.profile-image {
    width: 200px;
    height: 200px;
    /*border-radius: 50%;*/
    object-fit: cover;
    border: 3px solid var(--accent-color);
	border-radius: 8px;
}

.profile-image_R {
    max-width: 200px;
    height: auto;
    /*border-radius: 50%;*/
    object-fit: cover;
}

.profile-info { flex: 1; text-align: right; }
.profile-info a {
	color: #4a7c7c;
    transition: color 0.3s;
	text-decoration: none !important;
}
.profile-info a:hover {
	color: #b94949; /*#2e4f4f;*/
    text-decoration: underline overline #b94949;	
}

.profile-info h3 { font-size: 26px; margin-bottom: 10px; color: var(--primary-color); }
.profile-info_R { margin-left: 30px; }
.profile-info_R h3 {
	font-size: 26px;
	margin-bottom: 10px;
	color: var(--primary-color);
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}
.about-text { flex: 1; min-width: 300px; }
.about-text a {
	
	color: #4a7c7c;
    transition: color 0.3s;
	text-decoration: none !important;
}
.about-text a:hover {
    color: #b94949; /*#2e4f4f;*/
    text-decoration: underline overline #b94949;	
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

/* Figure & Image Styles */
figcaption {
    text-align: center;
    font-style: italic;
    color: var(--light-text);
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}
.about-image figure { margin: 0; padding: 0; position: relative; width: 100%; display: block; }

/* Image Overlay */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.image-overlay.active { opacity: 1; visibility: visible; }
.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.image-overlay.active img { transform: scale(1); }
.image-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.image-overlay .close-btn:hover { opacity: 1; }

/* Zoomable Images */
.zoomable { cursor: zoom-in; transition: transform 0.3s ease; }
.zoomable:hover { transform: scale(1.05); }

/* **************************************************************************************************** **************************************************** Flip Cards */
.soins-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.flip-card {
    perspective: 1000px;
    height: 250px;	
	margin-bottom: 20px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

@media (hover: hover) {
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}

.flip-card-inner.flipped { transform: rotateY(180deg); }

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden !important;
}

.flip-card-front {
    background-color: #fff;
	/*background-color: #f7f8fb;*/
    padding: 25px;
}

.flip-card-back {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
}

.flip-card-back-image,
.flip-card-front-image {
	padding: 10px;
	display: flex;
	justify-content: center;
	align-items: center; 
	
	margin: 0 auto;  /* center */
}

.flip-card-back-image img,
.flip-card-front-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;

	width:100%;
	height:auto;
}

.flip-card-back-text {
	padding: 20px;
	text-align: center;
	overflow-y: auto;
}

.flip-card-front h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
	font-weight:bold;
}

.flip-card-front p {
    color: var(--light-text);
}

.soin-price {
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 10px;
}

/* Hack pour iOS */
@supports (-webkit-touch-callout: none) {
    .flip-card-inner {
        will-change: transform;
    }
}

/* Indicateur visuel du flip sur mobile */
@media (max-width: 768px) {
    .flip-card::after {
        content: '';
        position: absolute;
        top: 10px;
        right: 10px;
        width: 20px;
        height: 20px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%237EAAA3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 3h6v6"/><path d="M10 14L21 3"/><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"/></svg>');
        background-repeat: no-repeat;
        z-index: 10;
        pointer-events: none;
    }
}

/* ************************************************************************************************************************************** */

/* QR Code */
.qr-code {
    width: 120px;
    height: 120px;
    margin: 15px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.qr-code-container { margin: 20px 0; }

/* First sentence  | Nos Soins  */
.soin-sentence-desktop { display: block; }
.soin-sentence-mobile {  display: none; }

/* Footer */
footer {
    background-color: var(--primary-color-transparent);
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}
.footer-info {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.logo { font-size: 24px; font-weight: 700; margin-bottom: 15px; }

.social-links { /*margin-top: 10px;*/ }
.social-links a {
    color: #fff;
    margin: 0 10px;
    font-size: 30px;
    text-decoration: none;
}
.social-links a:hover {
    color: #2e4f4f;
    text-decoration: underline;
    transition: color 0.3s;
}
.footer-bottom p { margin-top: 10px; }
.footer-links a { color: #FFF; text-decoration: none; }
.footer-links a:hover {
    color: #2e4f4f;
    text-decoration: underline;
    transition: color 0.3s;
}

/* Sitemap */
.sitemap-container { margin: 20px 0; }
.sitemap-section { margin-bottom: 30px; }
.sitemap-section h2 {
    color: #4a7c7c;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.sitemap-list { list-style-type: none; padding-left: 0; }
.sitemap-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.sitemap-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4a7c7c;
}
.sitemap-list a {
    color: #4a7c7c;
    text-decoration: none !important;
    transition: color 0.3s;
}
.sitemap-list a:hover {
    color: #b94949; /*#2e4f4f;*/
    text-decoration: underline overline #b94949;	
}

/* Contact List */
.contact-section { /*margin-bottom: 30px;*/ }
.contact-section h2 {
    color: #4a7c7c;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 40px;
	
	text-align:center;
}

.contact-section ul { text-align:center; border-top: 1px solid #e0e0e0; padding-top: 40px; margin-top: 40px; }

.contact-list { list-style-type: none; padding-left: 0; }

.contact-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
	
	text-align:center;
}
.contact-list li:before {
    /*content: '•';
    position: absolute;
    left: 0;
    color: #4a7c7c;*/
}
.contact-list a {
    color: #4a7c7c;
    transition: color 0.3s;
	text-decoration: none !important;
}
.contact-list a:hover {
    color: #b94949; /*#2e4f4f;*/
    text-decoration: underline overline #b94949;
}

.contact-list i {
	color: var(--primary-color);
}

/* Spécifique page Contact */
#pContact a {
    color: #4a7c7c;
    transition: color 0.3s;
	text-decoration: none !important;
}
#pContact a:hover {
    color: #b94949; /*#2e4f4f;*/
    text-decoration: underline overline #b94949;
}

.pSeances {
	margin-top: 35px;
	border-top: 1px solid #e0e0e0;
	padding-top: 35px;
}

.pSeances p {
	font-size: 12px;
}

/*   Mentions spéciales    */

.placeholder {
	/* background-color: #fffffc; f8f9fa*/
	padding: 5px 10px;
	border-left: 3px solid #3498db;
	/*font-style: italic;*/
	color: #555;
}
.section {
	margin-bottom: 30px;
}

.section a {
    color: #4a7c7c;
    text-decoration: none !important;
    transition: color 0.3s;
}
.section a:hover {
    color: #b94949; /*#2e4f4f;*/
    text-decoration: underline overline #b94949;	
}


.note {
	background-color: #ffffcc;
	padding: 10px;
	border-left: 3px solid #f0ad4e;
	margin: 15px 0;
}

/* Media Queries */
@media (min-width: 769px) {
    .hamburger, .mobile-menu, .mobile-menu-overlay { display: none; }
    nav { display: block; }
}

@media (min-width: 768px) {

    .about-image figure {
        max-height: 350px;
        overflow: hidden;
    }
 
    figcaption {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        margin: 0;
        z-index: 2;
		width: 100%;
    }
}

@media (max-width: 768px) {
	
    body { padding-top: 120px; }
    .banner { height: 100px; }
    .banner-overlay { top: 0; }
    .banner-overlay p { display: none; }
    .banner-overlay h1 { font-size: 26px; margin-left: -20px; }
    .content-container { margin-top: 15px; }
    
    .profile-info { text-align: center; }
    .card-content { text-align: center; }
    .card-content img[src*="Logo_Acupression_Clean.png"] { float: none; }
	
	/* First sentence  | Nos Soins  */	
	.soin-sentence-desktop { display: none; }
	.soin-sentence-mobile {  display: block; }
    
    nav { display: none; }
    .hamburger {
        display: block;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 1100;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 5px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .profile-card { flex-direction: column; text-align: center; }
    .profile-image-container { margin-right: 0; margin-bottom: 15px; }
    .profile-info h3 { font-size: 22px; }
    
    .about-content { flex-direction: column; }
    .about-image { width: 100%; }
    
    .hero-section { padding: 40px 20px; }
    .hero-section h2 { font-size: 24px; }
    .hero-section p { font-size: 16px; }
    
    .feature-cards, .soins-list { grid-template-columns: 1fr; }    
    
    .footer-content { flex-direction: column; }
    
    .about-image {
        width: 100%;
        position: relative;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    .about-image figure {
        margin: 0;
        padding: 0;
        position: relative;
        width: 100%;
        display: block;
    }
    .about-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: 350px;
        display: block;
    }

	figcaption { bottom: 0; }
	
	/* FLiP-CARD */
	
	/* Désactiver le survol sur les appareils tactiles */
	.flip-card:hover .flip-card-inner {
		/* transform: none; */
	}

	/* Améliorer le style visuel pour indiquer que la carte est interactive */
	.flip-card {
		position: relative;
	}
	  
	.flip-card::after {
		content: '';
		position: absolute;
		top: 10px;
		right: 10px;
		width: 20px;
		height: 20px;
		background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%237EAAA3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 3h6v6"/><path d="M10 14L21 3"/><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"/></svg>');
		background-repeat: no-repeat;
		z-index: 10;
		pointer-events: none;
	}

	/* Style pour les cartes en état retourné */
	.flip-card-inner.flipped {
		transform: rotateY(180deg) !important;
	}
}

@media (max-width: 480px) {
    body { padding-top: 70px; }
    .banner { height: 80px; }
    .content-container {
        margin-top: 10px;
        padding: 20px;
    }    
}