/*
Theme Name: Microlocs Montréal
Theme URI: https://microlocsmontreal.com
Author: Microlocs Montréal
Author URI: https://microlocsmontreal.com
Description: Thème WordPress personnalisé pour Microlocs Montréal - Locticienne experte en microlocs, Sisterlocks et micro twists.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: microlocs-montreal
*/

:root {
    --color-cream: #F5F0E8;
    --color-warm-brown: #8B6914;
    --color-deep-brown: #3D2914;
    --color-gold: #C9A227;
    --color-terracotta: #B85C38;
    --color-sage: #7A8B69;
    --color-charcoal: #2C2C2C;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(245,240,232,0.98), rgba(245,240,232,0.85));
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-deep-brown);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo span {
    color: var(--color-gold);
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-deep-brown);
    text-decoration: none;
    position: relative;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--color-gold);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: var(--color-deep-brown);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 80px;
    position: relative;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(201,162,39,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(184,92,56,0.06) 0%, transparent 50%),
        var(--color-cream);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 25 L55 30 L35 35 L30 55 L25 35 L5 30 L25 25 Z' fill='none' stroke='%23C9A227' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content {
    position: relative;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    margin-bottom: 2rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--color-gold);
    font-weight: 500;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    color: var(--color-deep-brown);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 span {
    font-style: italic;
    color: var(--color-gold);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-charcoal);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    opacity: 0.85;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-deep-brown);
    color: var(--color-cream);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-gold);
    transition: left 0.4s ease;
    z-index: 0;
}

.cta-primary:hover::before {
    left: 0;
}

.cta-primary span {
    position: relative;
    z-index: 1;
}

.cta-primary svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.cta-primary:hover svg {
    transform: translateX(5px);
}

.hero-phone {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    width: 100%;
}

.hero-content {
    text-align: left;
}

.hero-image {
    position: relative;
    aspect-ratio: 3/4;
    max-height: 600px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--color-gold);
    box-shadow: 20px 20px 0 var(--color-deep-brown);
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-warm-brown), var(--color-terracotta));
    border: 3px solid var(--color-gold);
    box-shadow: 20px 20px 0 var(--color-deep-brown);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-cream);
    text-align: center;
    padding: 2rem;
}

.hero-image-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: var(--color-cream);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.hero-image-placeholder span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-image-placeholder p {
    font-size: 0.85rem;
    opacity: 0.7;
    max-width: 200px;
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
        order: 1;
    }
    
    .hero-image {
        order: 2;
        max-height: 450px;
        margin: 0 auto;
        width: 80%;
    }
    
    .hero-image img,
    .hero-image-placeholder {
        box-shadow: 15px 15px 0 var(--color-deep-brown);
    }
}

/* Section Styles */
section {
    padding: 100px 5%;
}

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

.section-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    margin-bottom: 1rem;
    display: block;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--color-deep-brown);
    margin-bottom: 1rem;
}

.section-intro {
    color: var(--color-charcoal);
    opacity: 0.8;
    font-size: 1.05rem;
}

/* Services Section */
#services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--color-cream);
    padding: 3rem 2.5rem;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 20px 50px rgba(61,41,20,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-gold);
    stroke-width: 1;
    fill: none;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-deep-brown);
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-card p {
    color: var(--color-charcoal);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--color-charcoal);
    border-bottom: 1px solid rgba(201,162,39,0.2);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '◆';
    font-size: 0.5rem;
    color: var(--color-gold);
}

/* Gallery Section */
#galerie {
    background: var(--color-deep-brown);
    overflow: hidden;
}

#galerie .section-tag,
#galerie h2,
#galerie .section-intro {
    color: var(--color-cream);
}

#galerie .section-tag {
    opacity: 0.7;
}

#galerie .section-intro {
    opacity: 0.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--color-warm-brown), var(--color-terracotta));
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-cream);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem;
}

.gallery-item:hover span {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:nth-child(1) { background: linear-gradient(135deg, #8B6914, #A67C00); }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #6B4423, #8B5A2B); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, #5D4037, #795548); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, #3E2723, #5D4037); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #4E342E, #6D4C41); }
.gallery-item:nth-child(6) { background: linear-gradient(135deg, #B85C38, #D4715E); }
.gallery-item:nth-child(7) { background: linear-gradient(135deg, #7A8B69, #9CAF88); }
.gallery-item:nth-child(8) { background: linear-gradient(135deg, #C9A227, #E6BE44); }

.gallery-note {
    text-align: center;
    color: var(--color-cream);
    opacity: 0.6;
    margin-top: 2rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* FAQ Section */
#faq {
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(61,41,20,0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-question h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-deep-brown);
    font-weight: 500;
    flex: 1;
    padding-right: 2rem;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-toggle svg {
    width: 12px;
    height: 12px;
    stroke: var(--color-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: var(--color-gold);
}

.faq-item.active .faq-toggle svg {
    stroke: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 0 1.5rem;
    color: var(--color-charcoal);
    opacity: 0.8;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* SEO Content Section */
#zones {
    background: var(--color-cream);
}

.zones-content {
    max-width: 1000px;
    margin: 0 auto;
}

.zones-text {
    text-align: center;
    margin-bottom: 3rem;
}

.zones-text p {
    font-size: 1.05rem;
    color: var(--color-charcoal);
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto;
}

.zones-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.zone-tag {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid rgba(201,162,39,0.3);
    font-size: 0.9rem;
    color: var(--color-deep-brown);
    transition: all 0.3s ease;
}

.zone-tag:hover {
    background: var(--color-gold);
    color: white;
    border-color: var(--color-gold);
}

/* CTA Section */
#contact {
    background: linear-gradient(135deg, var(--color-deep-brown), #2A1F0F);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23C9A227' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#contact .section-tag,
#contact h2 {
    color: var(--color-cream);
    position: relative;
}

#contact h2 {
    margin-bottom: 2rem;
}

.contact-phone {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-gold);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.contact-phone:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(201,162,39,0.5);
}

.contact-subtitle {
    color: var(--color-cream);
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto 3rem;
    position: relative;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
}

.social-link {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(201,162,39,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: var(--color-cream);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-5px);
}

.social-link:hover svg {
    fill: var(--color-deep-brown);
}

/* Footer */
footer {
    background: #1A1209;
    padding: 3rem 5%;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--color-gold);
}

footer p {
    color: var(--color-cream);
    opacity: 0.5;
    font-size: 0.85rem;
}

.footer-seo {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--color-cream);
    opacity: 0.3;
    font-size: 0.75rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Mobile Styles */
@media (max-width: 900px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
    }
    
    nav.active {
        right: 0;
    }
    
    nav a {
        font-size: 1.2rem;
    }
    
    .mobile-menu {
        display: flex;
        z-index: 1001;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    section {
        padding: 60px 5%;
    }
    
    .hero {
        padding: 100px 5% 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}
