/* General Styles */
* {
    -webkit-font-smoothing: antialiased;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: 'Overpass', sans-serif;
    letter-spacing: 0px;
    font-size: 17px;
    color: #8d8f90;
    font-weight: 400;
    line-height: 32px;
    background-color: #edefef;
}

h1, h2, h3, h4, h5, h6 {
    color: #25292a;
    margin: 0px 0px 10px 0px;
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 28px;
    line-height: 38px;
}

h3 {
    font-size: 22px;
    line-height: 32px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 17px;
}

h6 {
    font-size: 12px;
}

p {
    margin: 0 0 20px;
    line-height: 1.7;
}

p:last-child {
    margin: 0px;
}

a {
    text-decoration: none;
    color: #8d8f90;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

a:focus, a:hover {
    text-decoration: none;
    color: #f85759;
}

.large-icon {
    font-size: 48px !important;
    vertical-align: middle;
}

.small-icon {
    font-size: 18px !important;
    vertical-align: middle;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #ffffff !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 500;
    color: #25292a !important;
}

.navbar-brand:hover {
    color: #667eea !important;
}

.navbar-brand .material-icons {
    vertical-align: middle;
    margin-right: 5px;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #25292a !important;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important;
}

.navbar-nav .nav-link .material-icons {
    margin-right: 5px;
    font-size: 20px;
}

.navbar-nav .nav-item.active .nav-link {
    font-weight: 500;
    color: #667eea !important;
}

/* Status Banner */
.status-banner {
    font-size: 1.1rem;
    font-weight: 500;
}

.status-banner .material-icons {
    font-size: 20px;
}

/* Hero Section / Page Header */
.page-header {
    position: relative;
}

.page-header.with-image {
    background: url('/static/images/leptitmarchedecabariot.jpg') no-repeat;
    background-size: cover;
    background-position: center;
}

.page-caption {
    padding-top: 170px;
    padding-bottom: 174px;
}

.page-title {
    font-size: 46px;
    line-height: 1;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.card-section {
    position: relative;
    bottom: 60px;
}

.card-block {
    padding: 80px;
}

.section-title {
    margin-bottom: 60px;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .btn {
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-section .btn .material-icons {
    vertical-align: middle;
    margin-right: 5px;
}

/* Section Styles */
.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.bg-white {
    background-color: #fff !important;
}

.mb30 {
    margin-bottom: 30px;
}

/* Carousel Styles */
.card.card-raised {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card.card-raised:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.card.card-carousel {
    background: #fff;
    margin-bottom: 30px;
    margin-top: 30px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    color: white;
    padding: 60px 20px 40px;
    text-align: center;
}

.carousel-slide-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.carousel-icon {
    margin-bottom: 20px;
}

.carousel-icon .material-icons {
    font-size: 80px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.carousel-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Carousel Controls */
.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: white;
    transform: scale(1.3);
}

.carousel-control-prev .material-icons,
.carousel-control-next .material-icons {
    font-size: 50px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Info Cards */
.info-section {
    padding: 60px 0;
}

.info-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 64px !important;
    color: #667eea;
    margin-bottom: 15px;
}

.info-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 15px;
}

.info-card h4 {
    font-weight: 500;
    margin-bottom: 10px;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.service-icon .material-icons {
    font-size: 64px !important;
    color: #667eea;
}

.service-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #25292a;
    margin-bottom: 15px;
}

.service-card .card-text {
    color: #8d8f90;
    font-size: 1rem;
    line-height: 1.6;
}

/* Horaires Home Section */
.horaires-home {
    background-color: #f8f9fa;
}

.horaires-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.horaires-card h2 {
    color: #25292a;
    font-weight: 700;
    font-size: 2rem;
}

.horaires-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.day-item {
    flex: 1;
    min-width: 120px;
    background: white;
    border-radius: 10px;
    padding: 20px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.day-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.day-item.active-day {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.day-name-horiz {
    font-size: 1rem;
    font-weight: 700;
    color: #25292a;
    margin-bottom: 10px;
}

.day-item.active-day .day-name-horiz {
    color: white;
}

.day-hours-horiz {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
}

.day-item.active-day .day-hours-horiz {
    color: white;
}

.day-hours-horiz.closed {
    color: #dc3545;
    font-style: italic;
}

.day-item.active-day .day-hours-horiz.closed {
    color: rgba(255,255,255,0.95);
}

.day-note-horiz {
    font-size: 0.75rem;
    color: #28a745;
    margin-top: 5px;
    font-style: italic;
}

.day-item.active-day .day-note-horiz {
    color: rgba(255,255,255,0.9);
}

.day-card {
    background: white;
    border-radius: 10px;
    padding: 15px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.day-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.day-card.active-day {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.day-card.active-day .day-abbr,
.day-card.active-day .day-name,
.day-card.active-day .day-hours {
    color: white;
}

.day-abbr {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.day-name {
    font-size: 0.9rem;
    color: #8d8f90;
    margin-bottom: 10px;
}

.day-hours {
    font-size: 0.85rem;
    font-weight: 600;
    color: #25292a;
}

.day-hours.closed {
    color: #dc3545;
    font-style: italic;
}

.day-card.active-day .day-hours.closed {
    color: rgba(255,255,255,0.9);
}

.day-note {
    font-size: 0.7rem;
    color: #28a745;
    margin-top: 5px;
    font-style: italic;
}

.day-card.active-day .day-note {
    color: rgba(255,255,255,0.9);
}

/* Hours Page */
.page-header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hours-list {
    font-size: 1.1rem;
}

.hour-row.current-day {
    background-color: #f8f9fa;
    border-radius: 8px;
}

.day-name {
    font-size: 1.2rem;
}

.hour-time {
    color: #333;
    font-weight: 500;
}

/* Contact Page */
.contact-info h5 {
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-item {
    padding: 15px 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-border-card {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.call-to-action-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Footer */
.footer-custom {
    margin-top: 60px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.footer-custom h5 {
    font-weight: 500;
    margin-bottom: 15px;
}

.footer-custom .material-icons {
    vertical-align: middle;
    margin-right: 5px;
}

.footer-custom a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-custom a:hover {
    color: #667eea !important;
    text-decoration: none;
}

.social-links a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn .material-icons {
    vertical-align: middle;
    margin-right: 5px;
}

.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5568d3;
    border-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
}

.btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert .material-icons {
    vertical-align: middle;
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .horaires-card h2 {
        font-size: 1.5rem;
    }
    
    .horaires-horizontal {
        flex-direction: column;
        gap: 10px;
    }
    
    .day-item {
        min-width: 100%;
    }
    
    .day-card {
        margin-bottom: 10px;
    }
    
    .day-abbr {
        font-size: 1.2rem;
    }
    
    .carousel-item img {
        height: 350px;
    }
    
    .carousel-caption {
        padding: 40px 15px 30px;
    }
    
    .carousel-slide-content {
        min-height: 350px;
        padding: 30px 15px;
    }
    
    .carousel-icon .material-icons {
        font-size: 60px;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .info-icon {
        font-size: 48px !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .hero-section .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 30px 10px 20px;
    }
    
    .carousel-slide-content {
        min-height: 300px;
    }
    
    .carousel-icon .material-icons {
        font-size: 50px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-description {
        font-size: 0.95rem;
    }
    
    .day-name {
        font-size: 1rem;
    }
    
    .hour-time {
        font-size: 0.95rem;
    }
}

/* Text Type Animation */
.text-type {
    display: inline-block;
    white-space: pre-wrap;
    min-height: 1.5em;
}

.text-type__content {
    display: inline-block;
}

.text-type__cursor {
    margin-left: 0.25rem;
    display: inline-block;
    opacity: 1;
    font-weight: normal;
}

.text-type__cursor--hidden {
    display: none;
}

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

.carousel-item {
    animation: fadeIn 0.6s ease;
}
