/* ==========================================================================
   DESIGN SYSTEM - TECHDETENTE (MODERN VANILLA CSS)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Premium Styling */
:root {
    --color-primary: #514147;        /* Dark plum/mauve text */
    --color-primary-light: #6b5a61;
    --color-primary-dark: #2d2626;   /* Footer dark brown-black */
    --color-accent: #03989e;         /* TechDetente teal */
    --color-accent-hover: #40c9a2;   /* Mint green hover */
    --color-accent-light: #e1feff;   /* Soft cyan tint (page bg) */
    --color-bg: #f7fdfd;             /* Near-white cyan background */
    --color-bg-card: #ffffff;
    --color-text: #514147;
    --color-text-light: #8a7d82;
    --color-border: #e3f4f4;

    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Exo 2', sans-serif;

    --shadow-sm: 0 2px 4px rgba(3, 152, 158, 0.08);
    --shadow-md: 0 10px 15px -3px rgba(3, 152, 158, 0.12), 0 4px 6px -2px rgba(3, 152, 158, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(3, 152, 158, 0.15), 0 10px 10px -5px rgba(3, 152, 158, 0.05);
    --shadow-accent-glow: 0 4px 14px rgba(64, 201, 162, 0.4);

    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

p { margin-bottom: 1.25rem; }
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Buttons (also styles the GoRendezvous booking link) */
.btn, .gorendezvous-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    letter-spacing: 0.3px;
}

.gorendezvous-button { display: inline-block; }

.btn-primary, .gorendezvous-button a {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover, .gorendezvous-button a:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-glow);
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-block, .btn-block.gorendezvous-button { display: block; width: 100%; }
.btn-block a { width: 100%; }

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

/* ==========================================================================
   NAVIGATION BAR & HEADER
   ========================================================================== */
header {
    background: rgba(255, 255, 255, 0.97);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
}

.logo-link { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-img { height: 68px; object-fit: contain; }

.nav-menu { display: flex; gap: 2.25rem; align-items: center; }

.nav-item > a {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-item > a:hover { color: var(--color-accent); }
.nav-item > a:hover::after, .nav-item.active > a::after { width: 100%; }
.nav-item.active > a { color: var(--color-accent); }

.nav-cta { display: inline-block; }
.nav-cta a {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.9rem !important;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(45, 38, 38, 0.72) 0%, rgba(45, 38, 38, 0.35) 55%, rgba(45, 38, 38, 0.15) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 3rem 2rem; }

.hero-eyebrow {
    display: inline-block;
    color: #ffffff;
    background: rgba(3, 152, 158, 0.85);
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 520px;
}

/* Page hero (interior pages) */
.page-hero {
    background-color: var(--color-accent-light);
    padding: 5rem 0 4rem;
    text-align: center;
}

.page-hero .section-subtitle { justify-content: center; }
.page-hero h1 { font-size: 2.5rem; }

/* ==========================================================================
   SECTIONS / CARDS
   ========================================================================== */
.section { padding: 6rem 0; }
.section-bg { background-color: #ffffff; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 4rem auto; }

.section-subtitle {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.section-title {
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0.9rem auto 0 auto;
    border-radius: 2px;
}

/* Benefits grid */
.grid-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.benefit-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.benefit-icon-wrapper svg { width: 32px; height: 32px; fill: currentColor; }
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 0; }

/* Treatment teaser cards (homepage) */
.grid-treatments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.treatment-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.treatment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.treatment-card-img { height: 220px; overflow: hidden; }
.treatment-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-smooth); }
.treatment-card:hover .treatment-card-img img { transform: scale(1.08); }

.treatment-card-body { padding: 1.75rem; flex-grow: 1; display: flex; flex-direction: column; }
.treatment-card-body h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.treatment-card-body p { color: var(--color-text-light); font-size: 0.92rem; flex-grow: 1; }

/* ==========================================================================
   FEATURE / QUOTE BANNER
   ========================================================================== */
.feature-banner {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: #ffffff;
    text-align: center;
    padding: 4.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.feature-title { color: #ffffff; font-size: 1.85rem; margin-bottom: 0.75rem; }
.feature-desc { font-weight: 300; font-size: 1.1rem; color: rgba(255,255,255,0.92); margin-bottom: 2rem; }
.feature-banner .btn-primary, .feature-banner .gorendezvous-button a { background-color: #ffffff; color: var(--color-accent); }
.feature-banner .btn-primary:hover, .feature-banner .gorendezvous-button a:hover { background-color: var(--color-primary-dark); color: #ffffff; }

/* ==========================================================================
   À PROPOS PAGE
   ========================================================================== */
.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-block.reverse .about-media { order: 2; }
.about-block.reverse .about-text { order: 1; }

.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.about-text h2 { font-size: 1.85rem; margin-bottom: 1.25rem; }
.about-text p { color: var(--color-text-light); }

.founder-block {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--color-accent-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-top: 2rem;
}

.founder-block img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.founder-block h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.founder-block p { color: var(--color-text-light); }
.founder-name { color: var(--color-accent); font-weight: 600; margin-bottom: 0.25rem; }

/* ==========================================================================
   SOINS & FORFAITS PAGE
   ========================================================================== */
.soin-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    padding: 2.25rem;
    margin-bottom: 2rem;
}

.soin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.soin-card-header h3 { font-size: 1.35rem; margin-bottom: 0; }

.soin-price {
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.soin-card p { color: var(--color-text-light); font-size: 0.96rem; }
.soin-card .btn, .soin-card .gorendezvous-button { margin-top: 0.5rem; }

/* Price list (massothérapie) */
.price-list {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    padding: 2.25rem;
    margin-bottom: 2rem;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.96rem;
}

.price-list li:last-child { border-bottom: none; }
.price-list .price-value { color: var(--color-accent); font-weight: 700; white-space: nowrap; }

/* Forfaits grid */
.grid-forfaits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.forfait-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.forfait-card h3 {
    font-size: 1.15rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.forfait-card p { color: var(--color-text-light); font-size: 0.92rem; flex-grow: 1; }

.forfait-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.soin-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 0.5rem auto;
    text-align: center;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
}

.contact-info-panel { display: grid; grid-template-columns: 1fr; gap: 2rem; }

.contact-info-card {
    background: #ffffff;
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-info-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon-wrapper svg { width: 26px; height: 26px; fill: currentColor; }

.contact-info-details h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.contact-info-details p, .contact-info-details a { color: var(--color-text-light); font-size: 0.98rem; }
.contact-info-details a:hover { color: var(--color-accent); }

.map-container {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.map-container iframe { width: 100%; height: 100%; border: none; }

/* ==========================================================================
   LEGAL PAGE (TERMES ET CONDITIONS)
   ========================================================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--color-text-light); }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.legal-content ul li { color: var(--color-text-light); margin-bottom: 0.4rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem 0;
}

.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; margin-bottom: 3.5rem; }

.footer-column h3 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-column p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 0.75rem; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; }
.footer-links a:hover { color: var(--color-accent); padding-left: 5px; }

.footer-logo { max-height: 60px; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-accent); }
.footer-social svg { width: 16px; height: 16px; fill: #ffffff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: #ffffff; }

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background-color: var(--color-accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--color-accent-hover); transform: translateY(-5px); }

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-benefits, .grid-treatments { gap: 1.5rem; }
}

@media (max-width: 991px) {
    .nav-container { height: 78px; }
    .logo-img { height: 54px; }
    .mobile-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 78px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 78px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        z-index: 999;
        transition: var(--transition-smooth);
        padding: 3rem 1.5rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active { left: 0; }
    .nav-item > a { font-size: 1.15rem; }

    .hero { min-height: 500px; }
    .hero-title { font-size: 2.2rem; }

    .grid-benefits, .grid-treatments { grid-template-columns: repeat(2, 1fr); }
    .about-block, .about-block.reverse { grid-template-columns: 1fr; }
    .about-block.reverse .about-media, .about-block.reverse .about-text { order: initial; }
    .founder-block { grid-template-columns: 1fr; text-align: center; }
    .founder-block img { max-width: 260px; margin: 0 auto; }
    .grid-forfaits { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section-title { font-size: 1.75rem; }
    .grid-benefits, .grid-treatments { grid-template-columns: 1fr; }
    .soin-card-header { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.85rem; }
    .contact-info-card { padding: 1.5rem; }
}
