/* =====================================================
   TRANSPORTS ACHATZ - CSS
   Couleurs: Jaune (#f9e602), Noir (#020202), Blanc (#FFF)
   ===================================================== */

/* Font Face - Speed Regular */
@font-face {
    font-family: 'Speed Regular';
    src: url('../fonts/Speed Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --color-yellow: #f9e602;
    --color-yellow-dark: #d9c902;
    --color-black: #020202;
    --color-white: #FFFFFF;
    --color-gray: #333333;
    --color-gray-light: #666666;
    --font-heading: 'Speed Regular', 'Bebas Neue', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
}

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

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

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

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(2, 2, 2, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px 5px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 227px;
    width: 350px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: normal;
    letter-spacing: 1px;
    color: var(--color-yellow);
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}

/* Navigation secondaire (deuxième ligne) */
.nav-secondary {
    width: 100%;
    text-align: center;
    padding-bottom: 12px;
    position: relative;
    transform: translateY(-70px) translateX(-110px);
    margin-bottom: -70px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--color-yellow);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-white);
    transform: scale(1.1);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.btn-contact {
    background-color: transparent;
    border: 2px solid var(--color-yellow);
    color: var(--color-yellow);
    padding: 10px 25px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--color-yellow);
    color: var(--color-black);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--color-yellow);
    transition: all 0.3s ease;
}

/* Mobile Navigation Active State */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: rgba(2, 2, 2, 0.98);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

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

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

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

    .nav-secondary {
        padding: 8px 0;
    }

    .nav-secondary .nav-link {
        font-size: 1rem;
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 598px;
    margin-top: 257px; /* 227px logo + 30px padding header */
    overflow: hidden;
}

.hero-slider {
    width: 100%;
}

.hero-slide {
    width: 100%;
    display: none;
    transition: opacity 1s ease;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 598px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-style: normal;
    color: var(--color-yellow);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-white);
    letter-spacing: 2px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--color-yellow);
}

/* =====================================================
   PAGE HERO (for subpages)
   ===================================================== */
.page-hero {
    padding: 150px 20px 80px;
    text-align: center;
    background-color: var(--color-black);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-style: normal;
    color: var(--color-yellow);
    letter-spacing: 3px;
}

/* =====================================================
   SECTION TITLES
   ===================================================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 50px;
}

/* =====================================================
   TRANSPORTS SECTION
   ===================================================== */
.transports-section {
    padding: 80px 20px;
    background-color: var(--color-white);
}

.transports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.transport-card {
    text-align: center;
}

.transport-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.transport-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.transport-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    color: var(--color-black);
}

/* =====================================================
   GALLERY SECTION
   ===================================================== */
.gallery-section {
    background-color: var(--color-black);
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* =====================================================
   HISTORY SECTION
   ===================================================== */
.history-section {
    padding: 60px 20px;
    background-color: var(--color-black);
}

.generations-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.generations-subtitle {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.generations-image {
    border-radius: 15px;
    overflow: hidden;
}

.generations-image img {
    width: 100%;
    height: auto;
}

.coming-soon {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--color-gray);
    border-radius: 10px;
}

.coming-soon p {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: normal;
    color: var(--color-yellow);
    letter-spacing: 3px;
}

/* =====================================================
   TOOLS SECTION
   ===================================================== */
.tools-section {
    padding: 60px 20px;
    background-color: var(--color-black);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.tool-card {
    background-color: var(--color-gray);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.tool-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-image img {
    max-width: 100%;
    max-height: 100%;
}

.tool-image-round {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-black);
}

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

.logo-rounded {
    width: 200px;
    height: auto;
    border-radius: 85px;
}

.tool-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: normal;
    color: var(--color-yellow);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tool-description {
    color: var(--color-gray-light);
    font-size: 0.95rem;
}

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--color-black) 0%, #0a0a0a 50%, var(--color-black) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-yellow), transparent);
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-yellow), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-yellow);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-yellow);
    box-shadow: 0 20px 40px rgba(249, 230, 2, 0.15);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card-large {
    grid-column: span 4;
    background: linear-gradient(145deg, #1a1a0a 0%, #0d0d05 100%);
    border-color: rgba(249, 230, 2, 0.3);
    padding: 50px;
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    color: var(--color-yellow);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    opacity: 1;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-style: normal;
    color: var(--color-yellow);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(249, 230, 2, 0.3);
}

.stat-card-large .stat-value {
    font-size: 5rem;
}

.stat-value-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stat-unit {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: normal;
    color: var(--color-yellow);
    opacity: 0.7;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: normal;
    color: var(--color-white);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.stat-sublabel {
    font-size: 0.9rem;
    color: var(--color-gray-light);
    margin-top: 5px;
}

/* Animation compteur */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card.animated {
    animation: countUp 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }

/* Responsive stats */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card-large {
        grid-column: span 2;
    }

    .stat-value {
        font-size: 3rem;
    }

    .stat-card-large .stat-value {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    .stats-section {
        padding: 60px 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .stat-card-large {
        grid-column: span 2;
        padding: 30px 20px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    .stat-card-large .stat-value {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .stat-unit {
        font-size: 1.2rem;
    }
}

/* =====================================================
   MAP SECTION
   ===================================================== */
.map-section {
    width: 100%;
    height: 500px;
    line-height: 0;
    scroll-margin-top: 280px;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* =====================================================
   LEGAL SECTION (Politique de confidentialité, Mentions légales)
   ===================================================== */
.legal-section {
    padding: 80px 20px;
    background-color: var(--color-black);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-white);
    line-height: 1.8;
}

.legal-update {
    color: var(--color-white);
    font-style: italic;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-yellow);
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--color-yellow);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-white);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-section {
    padding: 80px 20px;
    background-color: var(--color-black);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: var(--color-white);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--color-white);
    transition: border-color 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray-light);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--color-yellow-dark);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Messages de feedback formulaire */
.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.form-message-success {
    background-color: #10b981;
    color: white;
}

.form-message-error {
    background-color: #ef4444;
    color: white;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background-color: var(--color-gray);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.8) translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 50px;
    height: 50px;
}

.modal-success .modal-icon {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.modal-error .modal-icon {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 15px;
}

.modal-message {
    color: var(--color-gray-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-btn {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: none;
    padding: 12px 40px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background-color: var(--color-yellow-dark);
    transform: translateY(-2px);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background-color: var(--color-black);
    border-top: 1px solid var(--color-gray);
    padding: 40px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 60px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-social a {
    color: var(--color-yellow);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-white);
    transform: scale(1.1);
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--color-gray-light);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    color: var(--color-gray-light);
    font-size: 0.85rem;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .nav-list {
        gap: 25px;
    }

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

@media (max-width: 768px) {
    /* Header */
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .social-icons {
        display: none;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Transports */
    .transports-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }

    /* Tools */
    .tools-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    /* Page Hero */
    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 15px;
    }

    .logo img {
        height: 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-contact {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .page-hero {
        padding: 120px 15px 50px;
    }

    .page-title {
        font-size: 2rem;
    }
}
