/* Global Styles - Touchepasamonartisan.fr */
/* Aucun style de header/footer ici - ils sont inline dans les includes */

:root {
    --color-primary: #a16207;
    --color-secondary: #0f766e;
    --color-light: #fffbeb;
    --color-dark: #1f2937;
    --color-muted: #6b7280;
    --color-danger: #dc2626;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-system);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

table {
    max-width: 100%;
    border-collapse: collapse;
}

.table-responsive, .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
    font-size: 1rem;
}

.btn-secondary {
    border-width: 2px;
    border-style: solid;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    text-decoration: none;
}

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-primary);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    background-color: #ffffff;
    color: var(--color-dark);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

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

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Base */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    input, select, textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .grid, [class*='grid'] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
}