@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --color-estate-100: #f1f5f9;
    --color-estate-200: #e2e8f0;
    --color-estate-300: #cbd5e1;
    --color-estate-400: #94a3b8;
    --color-estate-500: #64748b;
    --color-estate-600: #475569;
    --color-estate-700: #334155;
    --color-estate-800: #1e293b;
    --color-estate-900: #0f172a;
    --laundry-blue: #007AFF;      /* Bleu principal */
    --laundry-light: #E8F3FF;     /* Bleu très clair pour les fonds */
    --laundry-dark: #0056B3;      /* Version plus foncée pour le hover */
    --fresh-white: #FFFFFF;       /* Blanc pur */
    --soft-gray: #F8FAFC;        /* Gris très doux */
    --tw-gradient-from: rgb(0 83 174 / 50%);
}

.font-display {
    font-family: 'Playfair Display', serif;
}

.font-ampersand {
    font-family: 'Baskerville', serif;
}

.animate-fadeIn {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--color-estate-600);
}

.bg-estate-800 {
    background-color: var(--color-estate-800);
}

.text-estate-600 {
    color: var(--color-estate-600);
}

.text-estate-300 {
    color: var(--color-estate-300);
}

/* Hero section */
.hero-section {
    background: linear-gradient(to right, var(--laundry-dark), var(--laundry-blue));
    color: white;
}

.hero-overlay {
    background: linear-gradient(rgba(0, 122, 255, 0.1), rgba(0, 86, 179, 0.2));
}

/* Navigation */
.nav-link {
    color: var(--fresh-white);
    transition: color 0.3s ease;
}

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

.navbar {
    background: linear-gradient(to right, var(--laundry-blue), var(--laundry-dark));
}

/* Map styles */
#map {
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
}

/* Card styles */
.laverie-card {
    background: var(--soft-gray);
    border: 1px solid var(--laundry-light);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 320px;
    margin: 0 auto;
}

.laverie-card:hover {
    transform: translateY(-2px);
    border-color: var(--laundry-blue);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
}

.laverie-card .carousel {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    height: 200px;
    position: relative;
}

.laverie-card img {
    width: 100%;
    height: 235px;
    object-fit: cover;
}

.laverie-card .carousel-item {
    height: 200px;
}

.laverie-card .carousel-control-prev,
.laverie-card .carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.laverie-card:hover .carousel-control-prev,
.laverie-card:hover .carousel-control-next {
    opacity: 0.8;
}

.laverie-card .card-content {
    padding: 1.25rem;
    background-color: var(--fresh-white);
}

.laverie-card h3 {
    color: var(--color-estate-600);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.laverie-card p {
    color: var(--color-estate-600);
    font-size: 0.875rem;
    margin: 0;
}

.laverie-card p span {
    color: var(--color-estate-600);
}

.laverie-card .location-link {
    color: var(--color-estate-600);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--laundry-light);
}

.laverie-card .location-link:hover {
    background-color: var(--laundry-blue);
}

.laverie-card svg {
    width: 16px;
    height: 16px;
    fill: var(--color-estate-600);
}

.coming-soon-card {
    opacity: 0.7;
    background: linear-gradient(to bottom, #f3f4f6, #e5e7eb) !important;
    pointer-events: none;
}

.coming-soon-card img {
    filter: grayscale(100%);
}

/* Section titles */
.section-title {
    color: var(--color-estate-600);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

/* Ajuster la grille des laveries */
#laveries-container {
    @apply grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-16;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 50px;
}

/* Services section */
.service-card {
    background-color: var(--soft-gray);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--laundry-light);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.1);
}

.service-icon {
    color: var(--laundry-blue);
}

/* Entrepreneur section */
.entrepreneur-section {
    background: linear-gradient(135deg, var(--laundry-light) 0%, var(--fresh-white) 100%);
    padding: 5rem 0;
}

.entrepreneur-card {
    background: var(--fresh-white);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.08);
    padding: 3rem;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.feature-card {
    animation: featureCardFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:nth-child(2) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(3) {
    animation-delay: 1s;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 30px rgba(0, 122, 255, 0.15);
}

.feature-icon {
    color: var(--laundry-blue);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

@keyframes featureCardFloat {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: translateY(-15px) scale(1.03);
        box-shadow: 0 15px 25px rgba(0, 122, 255, 0.2);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

@keyframes attentionSeeker {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(0, 122, 255, 0);
    }
    25% {
        transform: scale(1.05);
        text-shadow: 0 0 30px rgba(0, 122, 255, 0.3);
    }
    50% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(0, 122, 255, 0);
    }
    75% {
        transform: scale(1.05);
        text-shadow: 0 0 30px rgba(0, 122, 255, 0.3);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(0, 122, 255, 0);
    }
}

#entrepreneur h2 {
    animation: attentionSeeker 4s ease-in-out infinite;
    color: #007AFF;
}

/* Text colors */
.text-laundry {
    color: var(--laundry-blue);
}

.text-estate-600 {
    color: var(--color-estate-600);
}

.text-estate-300 {
    color: var(--color-estate-300);
}

/* Links */
a {
    color: var(--laundry-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--laundry-dark);
}

/* Footer styles */
footer {
    background-color: var(--color-estate-800);
    color: var(--fresh-white);
}

footer h3 {
    color: var(--fresh-white);
}

footer p, 
footer li, 
footer a,
footer .text-estate-300,
footer .text-estate-400 {
    color: var(--fresh-white) !important;
}

footer a:hover {
    color: var(--laundry-light) !important;
}

footer .border-estate-700 {
    @apply border-opacity-30;
}

.primary-button {
    background-color: var(--laundry-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 122, 255, 0.1);
}

.primary-button:hover {
    border: 2px solid var(--laundry-blue);
    color: var(--laundry-blue);
    padding: 1rem 2rem;
    background-color: white !important;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.secondary-button {
    border: 2px solid var(--laundry-blue);
    color: var(--laundry-blue);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.secondary-button:hover {
    background-color: var(--laundry-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 122, 255, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }

    /* Navigation */
    .nav-mobile-menu {
        display: block;
    }

    /* Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--laundry-blue);
        z-index: 49;
        padding: 5rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .mobile-menu a {
        color: white;
        font-size: 1.25rem;
        text-decoration: none;
    }

    /* Map */
    #map {
        min-height: 300px;
    }

    /* Cards */
    .laverie-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .laverie-card .carousel {
        height: 250px;
    }

    .laverie-card img {
        height: 250px;
    }

    .laverie-card .carousel-item {
        height: 250px;
    }

    /* Carousel Controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 15% !important;
        opacity: 0.8 !important;
    }

    /* Touch Targets */
    button,
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Modal */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    /* Grid */
    .grid {
        grid-gap: 1rem !important;
    }

    /* Map Controls */
    .leaflet-touch .leaflet-control-zoom a {
        width: 44px;
        height: 44px;
        line-height: 44px;
    }

    /* Section spacing */
    section {
        padding: 3rem 1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Typography */
    h2 {
        font-size: 2rem !important;
    }

    .text-xl {
        font-size: 1.1rem;
    }

    /* Entrepreneur section */
    .entrepreneur-card {
        padding: 1.5rem;
    }

    /* Footer Styles */
    #footer {
        text-align: center;
    }

    #footer .grid {
        gap: 2rem;
    }

    #footer h3 {
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

    #footer ul {
        margin: 0 auto;
        max-width: 200px;
    }

    #footer .text-center.md\:text-left {
        text-align: center !important;
    }

    #footer .space-y-3 {
        margin-bottom: 1.5rem;
    }

    #footer p {
        margin: 0 auto;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    /* Cards */
    .laverie-card .carousel {
        height: 200px;
    }

    .laverie-card img {
        height: 200px;
    }

    .laverie-card .carousel-item {
        height: 200px;
    }

    /* Typography */
    h2 {
        font-size: 1.75rem !important;
    }

    .text-xl {
        font-size: 1rem;
    }

    /* Spacing */
    section {
        padding: 2rem 0.75rem;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Styles de base */
img {
    max-width: 100%;
    height: auto;
}

.grid {
    grid-gap: 1.5rem;
}

/* Style spécifique pour l'image Comines_2 */
img[src*="Comines_2.jpeg"] {
    object-fit: contain !important;
}