/**
 * Styles principaux - NotréPeau
 * Design inspiré de archerdining.com, somekind.studio/tayo, cumuluscoffee.com
 */

@import url('variables.css');

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(240, 233, 220, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md) 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-neutral-mid);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-md);
}

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

.navbar-brand {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-primary-dark);
}

.navbar-menu {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
}

.navbar-menu a {
    color: var(--color-neutral-dark);
    font-weight: 500;
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

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

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--text-2xl);
    color: var(--color-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-neutral-light);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-menu.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--text-base);
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

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

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

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

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--text-lg);
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--text-sm);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-neutral-light) 0%, var(--color-neutral-mid) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/hero-pattern.svg') center/cover no-repeat;
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-2xl);
}

.hero h1 {
    font-size: var(--text-5xl);
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: var(--text-xl);
    color: var(--color-neutral-dark);
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .hero p {
        font-size: var(--text-base);
    }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-subtitle {
    text-align: center;
    color: var(--color-neutral-dark);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
}

/* ============================================
   CARDS (Services, etc.)
   ============================================ */

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-sm);
}

.card-description {
    color: var(--color-neutral-dark);
    margin-bottom: var(--spacing-md);
}

.card-price {
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.card-footer {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-neutral-light);
}

/* ============================================
   FORMULAIRES
   ============================================ */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--color-primary-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--text-base);
    border: 2px solid var(--color-neutral-mid);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base);
    font-family: var(--font-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.form-error {
    color: var(--color-error);
    font-size: var(--text-sm);
    margin-top: var(--spacing-xs);
}

.form-success {
    color: var(--color-success);
    font-size: var(--text-sm);
    margin-top: var(--spacing-xs);
}

/* ============================================
   MESSAGES FLASH
   ============================================ */

.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.alert-success {
    background: rgba(74, 124, 89, 0.1);
    color: var(--color-success);
    border-left: 4px solid var(--color-success);
}

.alert-error {
    background: rgba(193, 39, 45, 0.1);
    color: var(--color-error);
    border-left: 4px solid var(--color-error);
}

.alert-warning {
    background: rgba(244, 162, 97, 0.1);
    color: var(--color-warning);
    border-left: 4px solid var(--color-warning);
}

.alert-info {
    background: rgba(42, 157, 143, 0.1);
    color: var(--color-info);
    border-left: 4px solid var(--color-info);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-primary-dark);
    color: var(--color-neutral-light);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

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

.footer-section h3 {
    color: var(--color-neutral-light);
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--color-neutral-mid);
}

.footer-section a:hover {
    color: var(--color-neutral-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(240, 233, 220, 0.1);
    color: var(--color-neutral-mid);
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 233, 220, 0.1);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

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

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner {
    border: 3px solid var(--color-neutral-mid);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .section {
        padding: var(--spacing-2xl) 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}
