/* ========================================
   OTWA — Mobilier réusiné
   Styles CSS — Mobile First
   ======================================== */

/* --- CSS Variables --- */
:root {
    --color-bg: #FAF9F7;
    --color-text: #2C3E50;
    --color-accent: #FF6B35;
    --color-accent-hover: #e55a2b;
    --color-light: #ffffff;
    --color-muted: #6b7c8a;
    --color-border: #e8e6e3;
    
    --font-title: 'Fraunces', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* --- Typography --- */
/* Titres : Fraunces Bold/SemiBold */
h1, h2 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
}

/* Sous-titres : Montserrat SemiBold */
h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.3;
}

/* Corps de texte : Montserrat Regular/Medium */
p {
    font-weight: 400;
}

strong, b {
    font-weight: 600;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 4px;
    transition: all var(--transition);
    text-align: center;
}

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

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

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: all var(--transition);
}

.header.scrolled {
    background-color: var(--color-bg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

/* Navigation */
.nav {
    display: none;
}

.nav.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--color-text);
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-cta {
    color: var(--color-accent);
}

/* Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 10px;
}

.menu-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition);
}

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

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

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

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

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-md);
}

.hero-title {
    color: var(--color-light);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-light);
    border-bottom: 2px solid var(--color-light);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(10px);
    }
    60% {
        transform: rotate(45deg) translateY(5px);
    }
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-intro {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   LE GESTE SECTION
   ======================================== */
.geste {
    padding-top: var(--space-2xl);
}

/* Comparison - Single Image Layout */
.comparison-single {
    margin-bottom: var(--space-2xl);
}

.comparison-image-full {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.comparison-image-full img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}

.comparison-image-full:hover img {
    transform: scale(1.01);
}

.comparison-captions {
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-md);
}

.comparison-caption {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-muted);
    font-style: italic;
}

.signature {
    text-align: center;
}

.signature-text {
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.signature-image {
    overflow: hidden;
    border-radius: 4px;
}

.signature-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* ========================================
   PIECES SECTION
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.product-card {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.product-name {
    padding: var(--space-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
}

.products-cta {
    text-align: center;
}

.cta-text {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-muted);
}

/* ========================================
   ATELIER SECTION
   ======================================== */
.atelier {
    background-color: var(--color-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.team-member {
    text-align: center;
}

.team-photo {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
    aspect-ratio: 4/5;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all var(--transition-slow);
}

.team-member:hover .team-photo img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.team-name {
    font-weight: 500;
    font-size: 1rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-channels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.contact-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: var(--color-light);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.contact-channel:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.1);
}

.channel-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 50%;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

.channel-label {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

.channel-sublabel {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-muted);
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-light);
    padding: var(--space-lg);
    border-radius: 8px;
}

.form-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg);
    transition: border-color var(--transition);
}

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

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

.btn-submit {
    width: 100%;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity var(--transition);
}

.modal.active .modal-overlay {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--color-light);
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: all var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-text);
    z-index: 10;
    background: var(--color-light);
    border-radius: 50%;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--color-bg);
    color: var(--color-accent);
}

/* Gallery */
.modal-gallery {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--color-bg);
}

.gallery-image {
    width: 100%;
    height: 100%;
}

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

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light);
    border-radius: 50%;
    color: var(--color-text);
    transition: all var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background: var(--color-accent);
    color: var(--color-light);
}

.gallery-prev {
    left: var(--space-sm);
}

.gallery-next {
    right: var(--space-sm);
}

.gallery-dots {
    position: absolute;
    bottom: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background var(--transition);
}

.gallery-dot.active {
    background: var(--color-light);
}

/* Modal Info */
.modal-info {
    padding: var(--space-md);
}

.modal-title {
    margin-bottom: var(--space-sm);
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

.modal-details p {
    display: flex;
    flex-direction: column;
}

.modal-details strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.modal-cta {
    width: 100%;
    text-align: center;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE — TABLET
   ======================================== */
@media (min-width: 768px) {
    .nav {
        display: flex;
        position: static;
        background: none;
    }
    
    .nav-list {
        flex-direction: row;
        gap: var(--space-lg);
    }
    
    .nav-link {
        font-size: 0.9375rem;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .comparison {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .comparison-image img {
        height: 400px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-channels {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .modal-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   RESPONSIVE — DESKTOP
   ======================================== */
@media (min-width: 1024px) {
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .comparison-image img {
        height: 450px;
    }
    
    .signature-image img {
        max-height: 600px;
    }
    
    .products-grid {
        gap: var(--space-lg);
    }
    
    .product-name {
        padding: var(--space-md);
        font-size: 1rem;
    }
    
    .team-grid {
        gap: var(--space-lg);
        max-width: 800px;
        margin: 0 auto;
    }
    
    .contact-form-wrapper {
        padding: var(--space-xl);
    }
    
    .modal-info {
        padding: var(--space-lg);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip Link (for accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-accent);
    color: var(--color-light);
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}
