/* ============================================
   Bellae — Institut d'esthétique
   Design moderne et épuré
============================================ */

:root {
    --bg: #faf4ec;
    --bg-alt: #f1e7d6;
    --ink: #2a1f1a;
    --ink-soft: #6b5d54;
    --line: #e8dbc8;
    --accent: #b5834a;
    --accent-deep: #8a6336;
    --accent-soft: #d4b489;
    --white: #ffffff;
    --shadow-sm: 0 4px 20px rgba(60, 40, 20, 0.05);
    --shadow-md: 0 20px 50px rgba(60, 40, 20, 0.1);
    --radius: 4px;
    --radius-lg: 12px;
    --t: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

p { color: var(--ink-soft); }

a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

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

.eyebrow, .hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.lead {
    font-size: 1.075rem;
    margin: 1rem 0 2rem;
    max-width: 50ch;
}

/* ============ Boutons ============ */
.btn {
    display: inline-block;
    padding: 0.95rem 2rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--t);
    text-align: center;
}

.btn-primary {
    background: var(--ink);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
}
.btn-ghost:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-nav {
    border: 1px solid var(--ink);
    padding: 0.55rem 1.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--t);
}
.btn-nav:hover {
    background: var(--ink);
    color: var(--white);
}

/* ============ Header / Nav ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 244, 236, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t);
}
.header.scrolled { border-bottom-color: var(--line); }

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
}
.logo-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--ink);
    line-height: 1;
}
.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-deep);
    line-height: 1;
}
.logo-footer .logo-name { color: var(--white); }
.logo-footer .logo-sub { color: var(--accent-soft); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}
.nav-menu a {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    transition: all var(--t);
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 9rem 0 4rem;
    background: var(--bg);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, var(--bg) 0%, var(--bg) 42%, rgba(250, 244, 236, 0.88) 55%, rgba(250, 244, 236, 0.25) 100%),
        url('https://images.unsplash.com/photo-1633113088684-3eef0b14f0a6?w=1600&q=85') center/cover no-repeat;
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

.hero-content {
    max-width: 800px;
}

.hero-title {
    margin: 0.5rem 0 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 55ch;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============ Sections ============ */
.section {
    padding: 7rem 0;
}
.section-alt { background: var(--bg-alt); }

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

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Liste features */
.feature-list {
    list-style: none;
    margin-top: 2rem;
}
.feature-list li {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-weight: 400;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list span {
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    flex-shrink: 0;
}

/* Image card */
.image-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(181, 131, 74, 0.15), rgba(138, 99, 54, 0.25)),
        url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?w=900&q=80') center/cover;
    box-shadow: var(--shadow-md);
}
.image-decor {
    position: absolute;
    inset: -1px;
    background: linear-gradient(to top, rgba(26, 22, 20, 0.3), transparent 50%);
}

/* ============ Spécialités ============ */
.specialties {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.specialty {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.specialty-reverse .specialty-img { order: 2; }
.specialty-reverse .specialty-body { order: 1; }

.specialty-img {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    min-height: 320px;
}
.specialty-body {
    padding: 2.5rem 3rem;
}
.specialty-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(181, 131, 74, 0.12);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    font-weight: 500;
}
.specialty h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.specialty p {
    font-size: 1rem;
    max-width: 50ch;
}

/* ============ Galerie ============ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}
.gallery-item {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    transition: transform var(--t), box-shadow var(--t);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(42, 31, 26, 0);
    transition: background var(--t);
}
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
.gallery-item:hover::after {
    background: rgba(42, 31, 26, 0.15);
}
.gallery-tall { grid-row: span 2; }

/* ============ Cards (Soins) ============ */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: all var(--t);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card-icon {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.card h3 { font-size: 1.4rem; }
.card p { font-size: 0.95rem; }

/* ============ Tarifs ============ */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.price-col {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: background var(--t);
}
.price-col h3 {
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
    color: var(--accent-deep);
}
.price-featured {
    background: linear-gradient(180deg, var(--ink) 0%, #2a221c 100%);
    color: var(--white);
}
.price-col.price-featured h3 {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.15);
}
.price-col.price-featured li { border-bottom-color: rgba(255,255,255,0.08); }
.price-col.price-featured li span { color: #d8d2cc; }
.price-col.price-featured li b { color: var(--accent-soft); }
.price-col ul { list-style: none; }
.price-col li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.9rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
}
.price-col li:last-child { border-bottom: none; }
.price-col li span { color: var(--ink-soft); }
.price-col li b {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink);
}

/* ============ Témoignages ============ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    position: relative;
}
.testimonial::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
}
.testimonial p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 1.5rem;
}
.testimonial footer {
    font-size: 0.85rem;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
}

/* ============ Contact ============ */
.contact-grid { gap: 4rem; }

.contact-info {
    list-style: none;
    margin-top: 2rem;
}
.contact-info li {
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1rem;
}
.contact-info li:last-child { border-bottom: 1px solid var(--line); }
.contact-info b {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}
.contact-info span { color: var(--ink); }

/* Formulaire */
.contact-form {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 500;
}
.field input,
.field select,
.field textarea {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color var(--t);
    resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-form .btn { margin-top: 0.5rem; }
.form-feedback {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    text-align: center;
}
.form-success {
    background: rgba(181, 131, 74, 0.12);
    color: var(--accent-deep);
}
.form-info {
    background: rgba(60, 130, 180, 0.1);
    color: #2c5d7a;
}
.form-error {
    background: rgba(180, 60, 60, 0.1);
    color: #a83232;
}

/* ============ Footer ============ */
.footer {
    background: var(--ink);
    color: #d8d2cc;
    padding: 5rem 0 2rem;
}
.footer .logo { color: var(--white); }
.footer h4 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}
.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer a:hover { color: var(--accent); }
.footer .social { gap: 0.5rem; }

.footer-tagline {
    color: #a8a29c;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    max-width: 30ch;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-bottom {
    border-top: 1px solid #3a322c;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #8a847e;
}

/* ============ Animations ============ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 968px) {
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    .image-card { aspect-ratio: 16 / 11; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .pricing { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .testimonials { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .specialty { grid-template-columns: 1fr; gap: 0; }
    .specialty-reverse .specialty-img { order: 0; }
    .specialty-reverse .specialty-body { order: 1; }
    .specialty-body { padding: 2rem; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 640px) {
    .section { padding: 5rem 0; }
    .hero { padding: 7rem 0 3rem; }

    .logo-mark { width: 36px; height: 36px; }
    .logo-name { font-size: 1.25rem; letter-spacing: 0.15em; }
    .logo-sub { font-size: 0.55rem; letter-spacing: 0.25em; }

    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        gap: 0;
        padding: 2rem 1.5rem;
        border-bottom: 1px solid var(--line);
        transform: translateY(-110%);
        transition: transform var(--t);
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-menu li { width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
    .nav-menu li:last-child { border-bottom: none; padding-top: 1.25rem; }
    .btn-nav { display: inline-block; }

    .cards { grid-template-columns: 1fr; }
    .pricing { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .gallery-tall { grid-row: span 1; }
    .specialty-body { padding: 1.75rem; }
    .specialty h3 { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .contact-info li { grid-template-columns: 1fr; gap: 0.25rem; }
    .hero-actions .btn { width: 100%; }
}
