/**
 * Styles pour les pages de services
 */

/* ==== En-tête du service ==== */
.service-header {
    background: linear-gradient(135deg, #8fbf40 0%, #7aa836 100%);
    margin-bottom: 40px;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 8px 30px rgba(143, 191, 64, 0.2);
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .service-header {
        margin-top: 40px;
    }
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.service-header .row {
    position: relative;
    z-index: 1;
}

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

.service-logo {
    max-width: 100px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.service-header-text {
    flex: 1;
}

.service-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.service-slogan {
    font-size: 25px;
    color: rgba(255,255,255,0.95);
    font-style: italic;
    font-weight: 300;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.service-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.service-actions .btn {
    white-space: nowrap;
    border-radius: 50px;
    padding: 16px 32px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.service-actions .btn i {
    font-size: 1.1em;
}

.btn-call {
    background-color: #00a2e5 !important;
    color: #fff !important;
}

.btn-call:hover {
    background-color: #0088c7 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-map {
    background-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.4) !important;
}

.btn-map:hover {
    background-color: rgba(255,255,255,0.3) !important;
    border-color: rgba(255,255,255,0.6) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ==== Image vitrine ==== */
.service-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==== Statut ouvert/fermé ==== */
.service-header .service-status-wrapper {
    margin-top: 15px;
    margin-bottom: 0;
}

.service-status-wrapper {
    margin-bottom: 30px;
}

.service-status {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px !important;
}

.service-status--open {
    background-color: rgba(255, 255, 255, 0.95);
    color: #155724;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-status--closed {
    background-color: rgba(255, 255, 255, 0.95);
    color: #721c24;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-status__next {
    font-weight: 400;
    font-size: 0.9em;
}

/* ==== Onglets ==== */
.service-tabs {
    border-bottom: 3px solid #8fbf40;
    margin-bottom: 30px;
}

.service-tabs .nav-link {
    color: #666;
    font-weight: 600;
    padding: 15px 25px;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: all 0.3s ease;
}

.service-tabs .nav-link:hover {
    color: #8fbf40;
    border-color: transparent;
    background-color: #f9f9f9;
}

.service-tabs .nav-link.active {
    color: #8fbf40;
    border-color: #8fbf40;
    background-color: transparent;
}

/* ==== Contenu ==== */
.service-tab-content,
.service-content {
    padding: 30px 0;
}

.service-description h2,
.service-gallery h2,
.service-video h2,
.service-tarifs h2 {
    font-size: 22px !important;
    font-weight: 700;
    color: #1a1c1f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8fbf40;
}

.service-description,
.service-gallery,
.service-video,
.service-tarifs {
    margin-bottom: 40px;
}

.service-description p,
.service-tarifs p {
    line-height: 1.8;
    color: #32373c;
}

/* ==== Galerie ==== */
.service-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-gallery a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.service-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-gallery a:hover img {
    transform: scale(1.05);
}

/* ==== Vidéo ==== */
.embed-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ==== Sidebar ==== */
.service-sidebar {
    position: sticky;
    top: 20px;
}

.service-widget {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-widget h3 {
    font-size: 22px !important;
    font-weight: 700;
    color: #1a1c1f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8fbf40;
}

/* ==== Horaires ==== */
.service-horaires table {
    margin: 0;
}

.service-horaires th {
    font-weight: 600;
    color: #1a1c1f;
    width: 40%;
    padding: 10px 5px;
    border-top: 1px solid #e5e5e5;
}

.service-horaires td {
    padding: 10px 5px;
    color: #666;
    border-top: 1px solid #e5e5e5;
}

.service-horaires tr.today {
    background-color: #f0f8e8;
}

.service-horaires tr.today th,
.service-horaires tr.today td {
    font-weight: 600;
    color: #8fbf40;
}

.service-horaires .closed {
    color: #999;
    font-style: italic;
}

/* ==== Contact ==== */
.service-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.service-contact i {
    color: #8fbf40;
    font-size: 1.4rem;
    width: 22px;
    text-align: center;
}

.service-contact a {
    color: #32373c;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.service-contact a:hover {
    color: #8fbf40;
    text-decoration: underline;
}

/* ==== Réseaux sociaux ==== */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ==== Documents ==== */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border: 2px solid #e8e8e8;
    border-left: 4px solid #8fbf40;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.document-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(143, 191, 64, 0.03) 0%, rgba(143, 191, 64, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-item:hover::before {
    opacity: 1;
}

.document-item:hover {
    background: #fff;
    border-color: #8fbf40;
    border-left-width: 5px;
    box-shadow: 0 4px 12px rgba(143, 191, 64, 0.2), 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateX(4px) translateY(-2px);
}

.document-icon {
    font-size: 2.4rem;
    color: #8fbf40;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.document-item:hover .document-icon {
    color: #7aa836;
    transform: scale(1.1) rotate(-5deg);
}

.document-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1;
}



.document-title {
    font-weight: 700;
    color: #1a1c1f;
    font-size: 14px !important;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.document-item:hover .document-title {
    color: #8fbf40;
}

.document-meta {
    font-size: 14px !important;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.document-download {
    color: #8fbf40;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(143, 191, 64, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.document-item:hover .document-download {
    transform: scale(1.15) translateY(-2px);
    background: #8fbf40;
    color: #fff;
    box-shadow: 0 4px 8px rgba(143, 191, 64, 0.3);
}

/* ==== Localisation ==== */
.service-location {
    margin-bottom: 40px;
}

.service-location h2 {
    font-size: 22px !important;
    font-weight: 700;
    color: #1a1c1f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8fbf40;
}

.service-location .address {
    margin-bottom: 20px;
    color: #32373c;
    font-size: 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.service-location .address i {
    color: #8fbf40;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.service-location .address span {
    line-height: 1.6;
    font-size: 16px !important;
}

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

/* ==== Formulaire de contact ==== */
.service-contact-form {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-contact-form h3 {
    font-size: 22px !important;
    font-weight: 700;
    color: #1a1c1f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8fbf40;
}

.service-contact-form .form-group {
    margin-bottom: 16px;
}

.service-contact-form .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.service-contact-form .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
    padding: 0;
}

.service-contact-form label {
    display: block;
    font-weight: 600;
    color: #32373c;
    margin-bottom: 5px;
    font-size: 14px !important;
}

.service-contact-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.05rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.service-contact-form .form-control:focus {
    outline: none;
    border-color: #8fbf40;
    box-shadow: 0 0 0 2px rgba(143, 191, 64, 0.15);
}

.service-contact-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.service-contact-form .form-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 1.05rem;
    color: #666;
    cursor: pointer;
    line-height: 1.5;
}

.service-contact-form .form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #8fbf40;
}

.service-contact-form .btn-block {
    width: 100%;
    padding: 12px 20px;
    background-color: #8fbf40;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 8px;
}

.service-contact-form .btn-block i {
    margin-right: 6px;
}

.service-contact-form .btn-block:hover {
    background-color: #7aa836;
    transform: translateY(-1px);
}

.service-contact-form .btn-block:active {
    transform: translateY(0);
}

.service-contact-form .btn-block:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.service-contact-form .form-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 1.05rem;
    line-height: 1.5;
}

.service-contact-form .form-message.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding-left: 60px;
}

.service-contact-form .form-message.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.service-contact-form .form-message i {
    margin-right: 6px;
}

/* ==== Tarifs ==== */
.service-tarifs table {
    width: 100%;
    margin: 20px 0;
}

.service-tarifs table th,
.service-tarifs table td {
    padding: 12px;
    border: 1px solid #e5e5e5;
}

.service-tarifs table th {
    background-color: #8fbf40;
    color: #fff;
    font-weight: 600;
}

.service-tarifs table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ==== Responsive ==== */
@media (max-width: 991px) {
    .service-sidebar {
        position: static;
        margin-top: 40px;
    }

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

    .service-actions {
        margin-top: 25px;
    }

    .service-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .service-logo {
        max-width: 80px;
        height: 80px;
    }
}

@media (max-width: 767px) {
    .service-header {
        padding: 30px 20px;
        border-radius: 8px;
    }

    .service-header::before {
        width: 250px;
        height: 250px;
    }

    .service-title {
        font-size: 1.9rem;
    }

    .service-slogan {
        font-size: 1.1rem;
    }

    .service-logo {
        max-width: 70px;
        height: 70px;
        padding: 10px;
    }

    .service-actions {
        margin-top: 20px;
    }

    .service-actions .btn {
        width: 100%;
        padding: 14px 25px;
        font-size: 0.9rem;
    }

    .service-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .service-gallery img {
        height: 150px;
    }

    .service-contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .service-contact-form .form-row .form-group {
        margin-bottom: 18px;
    }
}

/* ==== Grille de services (shortcode) ==== */
.tezea-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.tezea-service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tezea-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tezea-service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tezea-service-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #8fbf40 0%, #7aa836 100%);
}

.tezea-service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.tezea-service-card-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tezea-service-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tezea-service-card-content {
    padding: 25px;
}

.tezea-service-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1c1f;
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.tezea-service-card:hover .tezea-service-card-title {
    color: #8fbf40;
}

.tezea-service-card-slogan {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* Responsive grille services */
@media (max-width: 991px) {
    .tezea-services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }

    .tezea-service-card-image {
        height: 180px;
    }

    .tezea-service-card-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767px) {
    .tezea-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .tezea-service-card-content {
        padding: 20px;
    }

    .tezea-service-card-title {
        font-size: 1.2rem;
    }
}

/* ==== Carousel de services ==== */
.tezea-services-carousel {
    margin: 40px 0;
    position: relative;
}

.slick-dotted.slick-slider {
    margin-bottom: 50px;
}

.tezea-services-carousel .tezea-service-card {
    margin: 10px 15px;
}

/* Flèches du carousel */
.tezea-services-carousel .slick-prev,
.tezea-services-carousel .slick-next {
    width: 50px;
    height: 50px;
    background-color: #8fbf40;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.tezea-services-carousel .slick-prev:hover,
.tezea-services-carousel .slick-next:hover {
    background-color: #7aa836;
    transform: scale(1.1);
}

.tezea-services-carousel .slick-prev {
    left: -25px;
}

.tezea-services-carousel .slick-next {
    right: -25px;
}

.tezea-services-carousel .slick-prev:before,
.tezea-services-carousel .slick-next:before {
    display: none;
}

.tezea-services-carousel .slick-prev i,
.tezea-services-carousel .slick-next i {
    color: #fff;
    font-size: 1.2rem;
    line-height: 50px;
}

/* Points de navigation */
.tezea-services-carousel .slick-dots {
    bottom: -50px;
}

.tezea-services-carousel .slick-dots li {
    width: 20px;
    height: 20px;
    margin: 0 5px;
}

.tezea-services-carousel .slick-dots li button {
    width: 20px;
    height: 20px;
}

.tezea-services-carousel .slick-dots li button:before {
    font-size: 16px;
    color: #8fbf40;
    opacity: 0.3;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.tezea-services-carousel .slick-dots li.slick-active button:before {
    color: #8fbf40;
    opacity: 1;
    font-size: 18px;
}

/* Responsive carousel */
@media (max-width: 991px) {
    .tezea-services-carousel .slick-prev {
        left: -15px;
    }

    .tezea-services-carousel .slick-next {
        right: -15px;
    }
}

@media (max-width: 767px) {
    .tezea-services-carousel {
        margin: 30px 0;
    }

    .tezea-services-carousel .tezea-service-card {
        margin: 0 10px;
    }

    .tezea-services-carousel .slick-prev,
    .tezea-services-carousel .slick-next {
        width: 40px;
        height: 40px;
    }

    .tezea-services-carousel .slick-prev i,
    .tezea-services-carousel .slick-next i {
        font-size: 1rem;
        line-height: 40px;
    }

    .tezea-services-carousel .slick-prev {
        left: -10px;
    }

    .tezea-services-carousel .slick-next {
        right: -10px;
    }
}
