/* ================================
   MATVILLA - Layout
   Structure générale du site
   ================================ */

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

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

section.section-gray {
    background-color: var(--gray-light);
}

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

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* === FLEX UTILITIES === */
.flex {
    display: flex;
    align-items: center;
}

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

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.header.transparent {
    background: transparent;
    box-shadow: none;
}

.header .container {
    height: 100%;
}

/* === NAVIGATION === */
.nav {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: var(--font-weight-medium);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* === LOGO === */
.logo {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo .mat {
    color: var(--orange-primary);
}

.logo .villa {
    color: var(--gray-primary);
}

.logo:hover .mat {
    color: var(--orange-dark);
}

/* Logo dans le footer (fond sombre) */
.footer .logo .mat {
    color: var(--orange-primary);
}

.footer .logo .villa {
    color: var(--gray-light);
}

.footer .logo:hover .mat {
    color: var(--orange-light);
}

/* Ancien logo image (pour compatibilité) */
.logo img {
    height: 50px;
    width: auto;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5;
}

/* === BADGES === */
.badges {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-subtitle {
    color: var(--orange-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

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