/* ============================================
   SMARTWORK BOATS — Feuille de style principale
   Style vintage nautique / maison de course
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Oswald:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #0a1a2e;
    --bg-medium: #142838;
    --bg-light: #1e3a52;
    --accent-gold: #c9a227;
    --accent-gold-light: #e8c54e;
    --accent-red: #b2231e;
    --accent-blue: #1e6b8a;
    --text-light: #e8e0d0;
    --text-medium: #b0a890;
    --text-dark: #2a2a2a;
    --card-bg: rgba(20, 40, 56, 0.92);
    --border-gold: rgba(201, 162, 39, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Oswald', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gold);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(10, 26, 46, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-light);
}

.logo svg {
    width: 48px;
    height: 48px;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    line-height: 1;
}

.logo-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--text-medium);
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-gold-light);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1a2e 0%, #142838 40%, #1e3a52 70%, #0a1a2e 100%);
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    pointer-events: none;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1.2s ease;
}

.hero-pretitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--accent-gold-light);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    letter-spacing: 6px;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(201, 162, 39, 0.3);
}

.hero h1 span {
    color: var(--accent-gold);
    display: block;
    font-size: 0.6em;
    letter-spacing: 12px;
    margin-top: 0.3em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto 2rem;
    letter-spacing: 1px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold-light);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    transition: left 0.4s ease;
    z-index: -1;
}

.hero-cta:hover::before {
    left: 0;
}

.hero-cta:hover {
    color: var(--bg-dark);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-medium);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.hero-scroll::after {
    content: '▼';
    display: block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
}

/* Decorative anchor/wheel SVG in hero */
.hero-decoration {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
}

.hero-decoration.top-right {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
}

.hero-decoration.bottom-left {
    bottom: 15%;
    left: 5%;
    width: 250px;
    height: 250px;
}

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

.section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-pretitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent-gold);
    letter-spacing: 3px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 4px;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    margin: 1.5rem auto;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.4;
}

.section-divider::before { left: -40px; }
.section-divider::after { right: -40px; }

.section-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================== BOAT CATALOG ===================== */

.boat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.boat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.boat-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(201, 162, 39, 0.1);
}

.boat-card-image {
    height: 220px;
    background: linear-gradient(180deg, #1a3a5a 0%, #0d1f30 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.boat-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(10, 26, 46, 0.8));
}

.boat-card-image svg {
    width: 90%;
    height: auto;
    max-height: 180px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.boat-card:hover .boat-card-image svg {
    transform: scale(1.08) translateY(-5px);
}

.boat-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 2px;
    z-index: 2;
}

.boat-card-body {
    padding: 1.5rem;
}

.boat-card-category {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.boat-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--text-light);
    margin: 0.3rem 0 0.8rem;
}

.boat-card-desc {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.boat-card-specs {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 162, 39, 0.15);
}

.boat-spec {
    text-align: center;
    flex: 1;
}

.boat-spec-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--accent-gold-light);
}

.boat-spec-label {
    font-size: 0.65rem;
    color: var(--text-medium);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.boat-card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-gold);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
}

.boat-card-link:hover {
    color: var(--accent-gold-light);
}

.boat-card-link::after {
    content: ' →';
}

/* ===================== ABOUT SECTION ===================== */

.about-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    padding: 5rem 2rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-header {
    text-align: left;
}

.about-text .section-divider {
    margin: 1.5rem 0;
}

.about-text .section-divider::before { display: none; }
.about-text .section-divider::after { display: none; }

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-medium);
    font-size: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-stat {
    text-align: center;
    padding: 1.5rem 0.5rem;
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    background: rgba(201, 162, 39, 0.03);
}

.about-stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--accent-gold-light);
}

.about-stat-label {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-medium);
}

.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-visual svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* ===================== HERITAGE TIMELINE ===================== */

.timeline-section {
    background: var(--bg-medium);
    padding: 5rem 2rem;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--accent-gold), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    text-align: right;
}

.timeline-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.timeline-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0.5rem 0;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--accent-gold);
    border: 3px solid var(--bg-medium);
    border-radius: 50%;
    z-index: 2;
}

/* ===================== CONTACT / CTA ===================== */

.cta-section {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-light));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,162,39,0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 4px;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

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

footer {
    background: #060e18;
    border-top: 1px solid var(--border-gold);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-gold-light);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 162, 39, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-medium);
}

.footer-bottom a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* ===================== BOAT DETAIL PAGE ===================== */

.boat-detail {
    padding-top: 100px;
    min-height: 100vh;
}

.boat-detail-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.boat-detail-back {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.boat-detail-back:hover {
    color: var(--accent-gold-light);
}

.boat-detail-back::before {
    content: '← ';
}

.boat-detail-category {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.boat-detail-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 4px;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.boat-detail-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-medium);
}

.boat-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}

.boat-detail-visual {
    background: linear-gradient(180deg, #1a3a5a 0%, #0d1f30 100%);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 100px;
}

.boat-detail-visual svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.boat-detail-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin: 2rem 0 1rem;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 0.5rem;
}

.boat-detail-info h3:first-child {
    margin-top: 0;
}

.boat-detail-info p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.spec-table tr {
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.spec-table td {
    padding: 0.8rem 0;
    font-size: 0.9rem;
}

.spec-table td:first-child {
    color: var(--text-medium);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
    width: 40%;
}

.spec-table td:last-child {
    color: var(--text-light);
    font-weight: 500;
}

.feature-list {
    list-style: none;
    margin: 1rem 0;
}

.feature-list li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    position: relative;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.feature-list li::before {
    content: '⚓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* ===================== ANIMATIONS ===================== */

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

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes waveMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===================== 3D VIEWER ===================== */

.boat-3d-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.viewer-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #0d1f30;
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    overflow: hidden;
}

.viewer-container canvas {
    display: block;
}

.viewer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-gold);
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 5;
}

.viewer-loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(201, 162, 39, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.viewer-toolbar {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
}

.viewer-btn {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--text-medium);
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.viewer-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
}

.viewer-btn.active {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
}

.viewer-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-medium);
    margin-top: 0.8rem;
    letter-spacing: 1px;
}

.stl-download {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.stl-download a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold-light);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.stl-download a:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

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

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .boat-detail-content {
        grid-template-columns: 1fr;
    }

    .boat-detail-visual {
        position: relative;
        top: 0;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        text-align: left !important;
    }

    .timeline-dot {
        left: 30px;
    }
}

@media (max-width: 700px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 26, 46, 0.98);
        padding: 1rem 2rem;
        gap: 1rem;
    }

    nav ul.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}
