/**************************************services*******************************************/
body {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(252, 252, 252);
    color: #333;
}

a {
    text-decoration: none;
}

a:hover {
    color: gold;
}
/* Conteneur des services */
.responsive-services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    position: relative;
}

/* Style des boîtes */
.responsive-service-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Hauteur minimale pour toutes les boîtes */
}

/* Pour ajuster les boîtes à taille égale tout en laissant la boîte du logo intacte */
.responsive-services-container > .responsive-service-box {
    height: 100%; /* Remplir toute la hauteur disponible dans la grille */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.responsive-service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.responsive-service-box i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 15px;
}

.responsive-service-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0275b9;
}

.responsive-service-box p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Style du logo au centre */
.responsive-logo-container {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background-color: #d9f1eef4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.responsive-logo-container img {
    width: 100%;
    height: 100%;
}

/* Responsivité pour les tablettes */
@media (max-width: 1024px) {
    .responsive-services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .responsive-logo-container {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .responsive-service-box h3 {
        font-size: 1.1rem;
    }

    .responsive-service-box p {
        font-size: 0.85rem;
    }
}

/* Responsivité pour les smartphones */
@media (max-width: 768px) {
    .responsive-services-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .responsive-logo-container {
        grid-column: auto;
        grid-row: auto;
        margin-bottom: 20px;
    }

    .responsive-service-box {
        padding: 15px;
    }

    .responsive-service-box i {
        font-size: 1.8rem;
    }

    .responsive-service-box h3 {
        font-size: 1rem;
    }

    .responsive-service-box p {
        font-size: 0.8rem;
    }
}

/* Responsivité pour les très petits écrans */
@media (max-width: 480px) {
    .responsive-service-box i {
        font-size: 1.5rem;
    }

    .responsive-service-box h3 {
        font-size: 0.9rem;
    }

    .responsive-service-box p {
        font-size: 0.75rem;
    }

    .responsive-services-container {
        gap: 8px;
    }
}

/**************************************produit matériel*******************************************/
/* Styles généraux */
.product-page {
    font-family: 'Rubik', sans-serif;
    color: #333;
    padding: 20px;
}

/* Section Hero */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 36px;
    color: #0275b9;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ffbf10;
    color: #0275b9;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: black;
    color:yellow;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Section Partenaires */
.partners-section {
    margin-bottom: 60px;
}

.partners-section h2 {
    font-size: 28px;
    color: #0275b9;
    margin-bottom: 20px;
    text-align: center;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.partners-grid img {
    width: 100px;
    height: auto;
}

/* Section Produits */
.products-section {
    margin-bottom: 60px;
}

.products-section h2 {
    font-size: 28px;
    color: #0275b9;
    margin-bottom: 40px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.product-image {
    position: relative;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    border-radius: 10px;
}

.product-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffbf10;
    color: #0275b9;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.product-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-link {
    display: inline-block;
    color: #0275b9;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #ffbf10;
}

/* Section Pourquoi choisir TTS */
.why-choose-section {
    margin-bottom: 60px;
}

.why-choose-section h2 {
    font-size: 28px;
    color: #0275b9;
    margin-bottom: 40px;
    text-align: center;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.why-choose-card {
    background-color: #ffbf10;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.why-choose-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.why-choose-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.why-choose-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem; /* Assurer une taille de texte lisible */
        min-width: 120px; /* Largeur minimale pour éviter un bouton trop petit */
        white-space: nowrap; /* Empêcher le texte de se diviser en plusieurs lignes */
    }

    .partners-grid img {
        width: 60px;
    }

    .product-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.25rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .partners-grid img {
        width: 50px;
    }

    .cta-button {
        font-size: 0.8rem; /* Taille de texte légèrement plus petite pour les très petits écrans */
        padding: 8px 16px; /* Ajustement du padding pour les petits écrans */
        min-width: 100px; /* Largeur minimale réduite pour les très petits écrans */
    }
}
/* Styles appliqués uniquement à la section Contrat de Maintenance */
.maintenance-section {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background: #8d9ef7;
    border-radius: 10px;
}

/* Image Bannière */
.maintenance-section .maintenance-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

.maintenance-section .maintenance-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay sur l'image */
.maintenance-section .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.maintenance-section .banner-overlay h1 {
    color: #fff;
    font-size: 2rem;
    text-align: center;
}

/* Contenu de la section */
.maintenance-section .maintenance-content {
    text-align: center;
    margin-top: 20px;
}

.maintenance-section .maintenance-content h2 {
    font-size: 1.8rem;
    color: #0275b9;
    margin-bottom: 10px;
}

.maintenance-section .maintenance-content p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

/* Styles de la section Contrat de Maintenance */
.maintenance-section {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background-color: rgb(252, 252, 252);
    border-radius: 10px;
    text-align: center;
    width: 90%;
}

/* Styles des Packs */
.maintenance-packs {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap
    gap: 20px;
}

/* Style des packs */
.pack {
    flex: 1 1 30%;
    min-width: 300px; /* Définit une largeur minimale pour chaque pack */
    background: #ffbf10;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    word-wrap: break-word; /* Permet aux mots longs de passer à la ligne suivante */
    margin-bottom: 20px; /* Ajoute un espacement entre les packs */
}

.pack:hover {
    transform: translateY(-5px);
    background: #e2f1de;
}

.pack h4 {
    font-size: 1.5rem;
    color: #0275b9;
    margin-bottom: 10px;
}

/* Alignement et style des listes dans les packs */
.pack ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    margin: 0;
    line-height: 1.5; /* Ajoute un espacement entre les lignes pour un meilleur visuel */
}

.pack ul li {
    font-size: 1rem;
    color: #333;
    padding: 5px 0;
    white-space: normal; /* Permet le retour à la ligne si le texte est trop long */
}

/* Bouton Devis */
.pack-cta {
    margin-top: 30px;
    text-align: center; /* Centrer le bouton dans les packs */
}

.btn-devis {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffbf10;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.btn-devis:hover {
    background: #35bd0c;
}

/* Responsive */
@media (max-width: 768px) {
    .maintenance-packs {
        flex-direction: column; /* Colonne sur les petits écrans */
        gap: 10px; /* Réduit l'espace entre les packs */
    }
}

/* Ajout de media queries pour s'adapter aux différents écrans */

/* Petits écrans (smartphones) */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .container {
        width: 95%;
        padding: 10px;
    }

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav {
        margin-right: 0;
    }

    .menu {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-left, .footer-center, .footer-right {
        margin-bottom: 15px;
    }

    .pack {
        padding: 15px; /* Réduire le padding des packs sur mobile */
    }

    .btn-devis {
        font-size: 1rem; /* Ajuster la taille du texte du bouton */
    }
}

/* Tablettes (écrans moyens) */
@media (min-width: 577px) and (max-width: 1024px) {
    .container {
        width: 90%;
    }

    .menu li {
        margin-left: 10px;
        padding-right: 5px;
    }

    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .pack {
        min-width: 300px; /* Augmenter la largeur minimale des packs sur les tablettes */
    }

    .btn-devis {
        font-size: 1.1rem; /* Taille du bouton légèrement plus grande sur tablette */
    }
}

/* Grands écrans */
@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .menu {
        justify-content: space-between;
    }

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

    .pack {
        min-width: 320px; /* Plus grande largeur minimale sur grand écran */
    }
}