/* Konfigirasyon Tailwind */
/* tailwind.config = {
    theme: {
        extend: {
            colors: {
                'primary-dark': '#0a1a35',
                'primary-blue': '#1e3a8a',
                'accent-gold': '#d4af37',
                'light-gold': '#f7e8c3',
            },
            backgroundImage: {
                'gradient-blue': 'linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%)',
                'gradient-dark': 'linear-gradient(135deg, #0a1a35 0%, #1e40af 100%)',
            }
        }
    }
}

 */









/* /////////////////////???/////////////////////// */

/* Variables CSS */
:root {
    --primary-dark: #0a1a35;
    --primary-blue: #1e3a8a;
    --accent-gold: #d4af37;
    --light-gold: #f7e8c3;
    --glass-bg: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.15);
    --accent-1: rgba(120, 86, 255, 0.9);
    --accent-2: rgba(0, 210, 255, 0.85);
    --text: rgba(255,255,255,0.95);
  
}


/* Retire tout margin ak padding ki kapab kreye espas la */
body {
    margin: 0;
    padding: 0;
}

#accueil {
    margin: 0;
    padding: 0;
}

.carousel {
    margin: 0;
    padding: 0;
}
.ship-header {
    background-image: url('/images/sec2Bato.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.ship-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 26, 53, 0.6);
}
/* Styles Globaux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--accent-gold) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    z-index: 100;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

/* Hero Carousel Styles */
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

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

.carousel-indicator.active {
    background: var(--accent-gold);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Services Styles */
.service-catalog-item {
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-catalog-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-catalog-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-image img {
    transition: transform 0.5s ease;
}

.service-catalog-item:hover .service-image img {
    transform: scale(1.1);
}

.value-card {
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Cargo Carousel Styles */
.cargo-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    min-width: 280px;
    flex-shrink: 0;
}

.cargo-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cargo-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

.cargo-item:hover .cargo-image img {
    transform: scale(1.15);
}

.cargo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 26, 53, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cargo-item:hover .cargo-overlay {
    opacity: 1;
}

.cargo-overlay-content {
    text-align: center;
    color: white;
}

.cargo-overlay-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.cargo-content {
    padding: 20px;
}

.cargo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.cargo-description {
    color: #6b7280;
    font-size: 0.9rem;
}

.cargo-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    cursor: grab;
}

.cargo-carousel:active {
    cursor: grabbing;
}

.cargo-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    user-select: none;
}

.cargo-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    border: none;
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cargo-carousel-control:hover {
    background: var(--accent-gold);
}

.cargo-carousel-control.prev {
    left: 10px;
}

.cargo-carousel-control.next {
    right: 10px;
}

.cargo-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.cargo-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cargo-carousel-indicator.active {
    background: var(--accent-gold);
}

.auto-scroll {
    animation: autoScroll 30s linear infinite;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-280px * 7 - 20px * 6));
    }
}

/* Fleet Styles */
.route-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.route-map {
    height: 200px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.route-info {
    padding: 20px;
}

.route-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.route-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.route-icon i {
    color: white;
    font-size: 18px;
}

.route-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
}

.stat-item i {
    color: var(--accent-gold);
    margin-right: 8px;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-gold);
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 17px;
    width: 2px;
    height: calc(100% + 13px);
    background-color: var(--accent-gold);
}

.timeline-item:last-child:after {
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

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

/* Styles pour la validation des formulaires */
.form-group {
    margin-bottom: 1rem;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-input.error {
    border-color: #e53e3e;
}

.form-input.success {
    border-color: #38a169;
}

/* Responsive */
/* Responsive Fixes - Mobile First Approach */
@media (max-width: 768px) {
    /* Navigation Mobile */
    nav .container {
        padding: 0 1rem;
    }
    
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        z-index: 1000;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    /* Hero Section */
    #accueil {
        height: 70vh;
        min-height: 500px;
        padding-top: 70px;
    }
    
    #accueil h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    #accueil p {
        font-size: 1rem !important;
        line-height: 1.5;
    }
    
    /* Carousel Controls */
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
    
    /* Mission, Vision, Valeurs */
    .value-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    /* Services Section */
    .service-catalog-item {
        margin-bottom: 2rem;
    }
    
    .service-image {
        height: 200px;
    }
    
    /* Cargo Carousel */
    .cargo-carousel-inner {
        gap: 15px;
        padding: 0 10px;
    }
    
    .cargo-item {
        min-width: 250px;
    }
    
    .cargo-image {
        height: 150px;
    }
    
    /* Routes Section */
    .route-card {
        margin-bottom: 2rem;
    }
    
    .route-map {
        height: 180px;
    }
    
    .route-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    /* Fleet Section */
    .ship-header {
        padding: 2rem 1rem;
    }
    
    .ship-header h3 {
        font-size: 1.5rem;
    }
    
    /* About Section */
    #apropos .flex-col {
        gap: 2rem;
    }
    
    #apropos img {
        margin-bottom: 1rem;
    }
    
    /* Process Section */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    /* Contact Section */
    #contact .flex-col {
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    footer .flex-col {
        text-align: center;
        gap: 1.5rem;
    }
    
    /* Modal Responsive */
    .modal-content {
        margin: 1rem;
        max-height: 85vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    /* Extra Small Devices */
    #accueil h1 {
        font-size: 1.5rem !important;
    }
    
    #accueil p {
        font-size: 0.9rem !important;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .service-catalog-item {
        margin: 0 0.5rem 2rem 0.5rem;
    }
    
    .cargo-item {
        min-width: 220px;
    }
    
    .route-map {
        height: 150px;
    }
    
    /* Button Groups */
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group button,
    .btn-group a {
        width: 100%;
        text-align: center;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .carousel-control {
        width: 44px;
        height: 44px;
    }
    
    /* .nav-link {
        padding: 12px 16px;
    } */
    
    button, 
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape Orientation Fixes */
@media (max-height: 500px) and (orientation: landscape) {
    #accueil {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 4rem 0;
    }
}

/* Container Padding Fix */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Image Responsive Fix */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Text Readability on Mobile */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    p {
        margin-bottom: 1rem;
    }
}

/* Form Elements Mobile Fix */
@media (max-width: 768px) {
    .form-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 16px;
    }
    
    select.form-input {
        height: 48px;
    }
}

/* Grid System Mobile Override */
@media (max-width: 768px) {
    .grid-cols-1-mobile {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-2-mobile {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes for Mobile */
.mobile-hidden {
    display: none;
}

.mobile-block {
    display: block;
}

@media (min-width: 769px) {
    .mobile-hidden {
        display: block;
    }
    
    .mobile-block {
        display: none;
    }
}
/* Hero Section Mobile Fix */
@media (max-width: 768px) {
    .carousel-slide .absolute.inset-0 {
        padding: 0 1rem;
    }
    
    .carousel-slide .max-w-2xl {
        max-width: 100%;
    }
    
    .carousel-slide .flex.flex-col {
        gap: 1rem;
    }
    
    .carousel-slide button,
    .carousel-slide a {
        width: 100%;
        justify-content: center;
    }
}