/* =============================================
   Mela Aesthetic — /css/style.css?v=1
   Centre d'amincissement — Fougères, Bretagne
   ============================================= */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --plum:    #2d1b2e;
  --rose:    #e879f9;
  --rose-dk: #c026d3;
  --cream:   #fdf2f8;
  --cream2:  #f5e6f0;
  --text:    #1a0a1e;
  --muted:   #7c5a85;
  --white:   #ffffff;
  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(45,27,46,0.13);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-dk); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rose); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--plum);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* === HEADER & NAV === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(45,27,46,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232,121,249,0.18);
  padding: 0 2rem;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 16px rgba(45,27,46,0.35);
}

.logo-link { display: flex; align-items: center; text-decoration: none; gap: 10px; }
.logo-img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  text-transform: uppercase;
}
.main-nav a:hover,
.main-nav a.active { background: rgba(232,121,249,0.18); color: var(--rose); }

.nav-cta {
  background: var(--rose) !important;
  color: var(--plum) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 30px !important;
}
.nav-cta:hover { background: var(--rose-dk) !important; color: var(--white) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--cream); border-radius: 2px; transition: var(--transition); }

/* === HERO SPLIT (video LEFT, text RIGHT) === */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 72px;
}
.hero-video-half {
  position: relative;
  overflow: hidden;
  background: #2d1b2e;
}
.hero-split-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.hero-text-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: #2d1b2e;
  color: #fff;
}
.hero-text-half h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.hero-text-half .hero-subtitle {
  color: var(--rose);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-style: italic;
}
.hero-text-half p { color: rgba(255,255,255,0.88); margin-bottom: 1.5rem; font-size: 1.05rem; }
.hero-text-half .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* === STANDARD HERO (non-split pages) === */
.hero-standard {
  padding-top: 72px;
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--plum) 0%, #4a1d6e 100%);
  text-align: center;
  color: var(--white);
  padding-left: 2rem; padding-right: 2rem;
}
.hero-standard h1 { color: var(--white); margin-bottom: 1rem; }
.hero-standard p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 680px; margin: 0 auto 1.5rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary { background: var(--rose); color: var(--plum); }
.btn-primary:hover { background: var(--rose-dk); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,121,249,0.35); }
.btn-outline { background: transparent; color: var(--rose); border: 2px solid var(--rose); }
.btn-outline:hover { background: var(--rose); color: var(--plum); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--plum); }
.btn-light:hover { background: var(--cream2); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.3rem; font-size: 0.85rem; }

/* === SECTIONS === */
.section { padding: 80px 0; }
.section-alt { background: var(--cream2); }
.section-dark { background: var(--plum); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.85); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-header p { color: rgba(255,255,255,0.75); }

.divider-rose {
  display: block; width: 60px; height: 3px;
  background: var(--rose); border-radius: 2px;
  margin: 0.75rem auto 1.5rem;
}

/* === 2-COLUMN GRIDS === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* === SERVICE CARDS === */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(45,27,46,0.18); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { color: var(--plum); margin-bottom: 0.5rem; }
.card-body p { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }

/* === ICON BOXES === */
.icon-box {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.icon-box:hover { transform: translateY(-4px); }
.icon-box .icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.icon-box h3 { font-size: 1.15rem; color: var(--plum); margin-bottom: 0.5rem; }
.icon-box p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* === BANNER / CSS BG === */
.banner-bg {
  position: relative;
  padding: 80px 2rem;
  text-align: center;
  background-image: url('/images/vue-fougeres.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.banner-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(45,27,46,0.72);
}
.banner-bg > * { position: relative; z-index: 1; }
.banner-bg h2 { color: var(--white); }
.banner-bg p { color: rgba(255,255,255,0.88); max-width: 640px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* === 2-COL IMAGE BLOCKS === */
.img-text-block { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 420px; }
.img-text-block.reverse { direction: rtl; }
.img-text-block.reverse > * { direction: ltr; }
.img-text-block .block-img { object-fit: cover; width: 100%; height: 100%; min-height: 320px; }
.img-text-block .block-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 3.5rem;
  background: var(--plum); color: var(--white);
}
.img-text-block .block-text h2 { color: var(--white); }
.img-text-block .block-text p { color: rgba(255,255,255,0.85); }

/* === TESTIMONIALS === */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--rose);
}
.testimonial p { font-style: italic; color: var(--text); margin-bottom: 0.75rem; }
.testimonial .author { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.stars { color: var(--rose); font-size: 1.1rem; margin-bottom: 0.5rem; }

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--cream2); padding: 1.5rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-weight: 700; color: var(--plum); font-size: 1.05rem; margin-bottom: 0.5rem; }
.faq-answer { color: var(--muted); }

/* === BLOG === */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-card-body .tag {
  display: inline-block; background: var(--rose); color: var(--plum);
  font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.7rem;
  border-radius: 20px; margin-bottom: 0.5rem; text-transform: uppercase;
}
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--plum); }
.blog-card-body .meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }
.blog-card-body p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* === ARTICLE PAGE === */
.article-hero { padding-top: 72px; }
.article-hero img { width: 100%; max-height: 480px; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; padding: 3rem 2rem; }
.article-body h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: var(--plum); margin-bottom: 0.5rem; }
.article-body .article-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--cream2); }
.article-body h2 { font-size: 1.45rem; color: var(--plum); margin: 2rem 0 0.75rem; }
.article-body h3 { font-size: 1.2rem; color: var(--plum); margin: 1.5rem 0 0.5rem; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body .client-link-box {
  background: var(--cream2);
  border-left: 4px solid var(--rose);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.article-body .client-link-box a { color: var(--rose-dk); font-weight: 600; }

/* === CONTACT FORM === */
.contact-form { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; color: var(--plum); margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.8rem 1rem;
  border: 2px solid var(--cream2);
  border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--rose); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-info { background: var(--plum); color: var(--white); padding: 2rem; border-radius: var(--radius); }
.form-info h3 { color: var(--white); margin-bottom: 1rem; }
.form-info p { color: rgba(255,255,255,0.85); margin-bottom: 0.75rem; font-size: 0.95rem; }
.form-info .info-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.form-info .info-icon { font-size: 1.2rem; flex-shrink: 0; }

/* === PLAN DU SITE === */
.sitemap-section { padding: 60px 0; }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.sitemap-col h3 { color: var(--rose-dk); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--rose); }
.sitemap-col ul { list-style: none; }
.sitemap-col ul li { margin-bottom: 0.5rem; }
.sitemap-col ul li a { color: var(--muted); font-size: 0.95rem; }
.sitemap-col ul li a:hover { color: var(--rose-dk); }

/* === 404 === */
.page-404 {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--plum); color: var(--white);
  padding: 2rem;
}
.page-404 .num { font-size: 8rem; font-weight: 900; color: var(--rose); line-height: 1; }
.page-404 h1 { color: var(--white); font-size: 1.8rem; margin-bottom: 1rem; }
.page-404 p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

/* === BREADCRUMBS === */
.breadcrumb { padding: 0.75rem 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--rose-dk); }
.breadcrumb span { margin: 0 0.4rem; }

/* === BADGES / CHIPS === */
.badge-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.badge {
  display: inline-block; padding: 0.3rem 0.9rem;
  background: rgba(232,121,249,0.12);
  color: var(--rose-dk);
  border: 1px solid rgba(232,121,249,0.3);
  border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
}

/* === STATS === */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 2.5rem 1rem; }
.stat-num { font-size: 2.8rem; font-weight: 900; color: var(--rose); font-family: var(--font-head); display: block; line-height: 1; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.4rem; display: block; }

/* === FOOTER === */
.site-footer {
  background: var(--plum);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand .logo-img { height: 48px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--rose); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.2rem 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--rose); }

/* === SCROLL TO TOP === */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 44px; height: 44px;
  background: var(--rose); color: var(--plum);
  border: none; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(232,121,249,0.4);
  transition: all var(--transition);
  opacity: 0; pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--rose-dk); transform: translateY(-3px); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-video-half { height: 300px; }
  .hero-text-half { padding: 3rem 1.5rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .img-text-block { grid-template-columns: 1fr; }
  .img-text-block.reverse { direction: ltr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--plum); padding: 1rem; gap: 0.25rem; border-bottom: 1px solid rgba(232,121,249,0.15); }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }
  .site-header { position: relative; }
  .hero-standard { padding-top: 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 50px 0; }
  h1 { font-size: 1.9rem; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.88rem; }
}
