
/* ================================================
   MINT VINTAGE - CSS Stylesheet
   Brocante et Antiquités en Occitanie
   ================================================ */

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

:root {
    /* Palette de couleurs */
    --color-primary: #B8860B;
    --color-primary-dark: #8B6914;
    --color-secondary: #CD7F32;
    --color-sage: #8B9A7E;
    --color-neutral: #FAF9F6;
    --color-dark: #2C2C2C;
    --color-accent: #800020;
    --color-white: #FFFFFF;
    --color-gray-light: #E5E5E5;
    
    /* Typographie */
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Open Sans', 'Helvetica', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-neutral);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* === HEADER === */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--color-primary);
}

.header-top {
    background-color: var(--color-sage);
    color: var(--color-white);
    padding: var(--spacing-xs) 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.header-contact {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.header-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.header-contact a:hover {
    color: var(--color-primary);
}

.header-main {
    padding: var(--spacing-sm) 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Dropdown Menu */
.nav-item.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-top: 3px solid var(--color-primary);
    margin-top: 0.5rem;
    z-index: 100;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--color-gray-light);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-left: 1.5rem;
}

/* Menu Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-dark);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* === SECTIONS === */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    margin: var(--spacing-sm) auto 0;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-primary-dark) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero_banner.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: #660019;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 32, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* === GRID === */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* === CARDS === */
.card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: var(--color-gray-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

.card-text {
    color: #666;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.card-footer {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-gray-light);
}

/* === CATEGORY CARDS === */
.category-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
    transition: var(--transition);
}

.category-card:hover::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card-title {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    right: var(--spacing-md);
    color: var(--color-white);
    font-size: 1.5rem;
    z-index: 3;
    text-align: center;
}

/* === TESTIMONIALS === */
.testimonial {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    position: relative;
    border-left: 4px solid var(--color-primary);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-author strong {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: #888;
    font-size: 0.9rem;
}

/* === FORMS === */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-error {
    color: var(--color-accent);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.form-group.error .form-control {
    border-color: var(--color-accent);
}

.form-group.error .form-error {
    display: block;
}

/* === FILTERS === */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(184, 134, 11, 0.3);
}

/* === FOOTER === */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.footer-section p,
.footer-section li {
    margin-bottom: var(--spacing-sm);
    color: #ccc;
}

.footer-section a {
    color: #ccc;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(184, 134, 11, 0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 0.9rem;
}

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* === SERVICE DETAIL === */
.service-detail {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-bottom: var(--spacing-md);
}

.service-detail h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.service-detail ul {
    list-style: disc;
    padding-left: var(--spacing-md);
}

.service-detail li {
    margin-bottom: var(--spacing-sm);
    color: #555;
}

/* === TEAM === */
.team-member {
    text-align: center;
}

.team-member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-primary);
    background-color: var(--color-gray-light);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--color-sage);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* === CONTACT INFO === */
.contact-info {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    align-items: flex-start;
}

.contact-item strong {
    color: var(--color-primary);
    min-width: 100px;
}

/* === MAP === */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

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

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Header */
    .header-top .container {
        justify-content: center;
    }
    
    .header-contact {
        font-size: 0.85rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-md);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-sm) 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        margin-top: 0;
        margin-left: var(--spacing-sm);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-item.has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    /* Sections */
    section {
        padding: var(--spacing-md) 0;
    }
    
    /* Grid */
    .grid {
        gap: var(--spacing-sm);
    }
    
    /* Cards */
    .card-image {
        height: 200px;
    }
    
    /* Hero */
    .hero {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* === PRINT === */
@media print {
    .header-top,
    .menu-toggle,
    .footer,
    .btn {
        display: none;
    }
}
