/* --- Variables CSS (optionnel, mais utile) --- */
:root {
    --primary-color: #3498db; /* Bleu */
    --secondary-color: #2ecc71; /* Vert */
    --text-color: #333;
    --light-grey: #f4f4f4;
    --border-color: #ddd;
    --header-bg: #2c3e50; /* Gris foncé */
    --footer-bg: #34495e; /* Gris encore plus foncé */
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    --review-bg: #e0f2f7; /* Bleu très clair pour les avis */
}

/* --- Général --- */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #f8f8f8;
}

/* Styles pour le Logo */
.logo-container {
    margin-bottom: 1rem; /* Espace sous le logo */
}

.site-logo {
    max-width: 250px; /* Taille maximale du logo, ajustez si nécessaire */
    height: auto; /* Maintient les proportions */
    display: block; /* S'assure que le logo prend toute sa largeur disponible */
    margin: 0 auto; /* Centre le logo horizontalement */
	
}

/* Cache visuellement un élément mais le garde accessible pour les lecteurs d'écran et le SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Header --- */
header {
    background-color: var(--header-bg);
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 2.8rem;
    letter-spacing: 1px;
}

header p {
    margin: 0.5rem 0 1.8rem 0;
    font-size: 1.2rem;
    opacity: 0.95;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 25px;
}

.language-switcher a {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-size: 0.9rem;
}

.language-switcher a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    text-decoration: none;
}

/* --- Sections Générales --- */
section {
    padding: 60px 0;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6dd5ed 100%);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    border-radius: 0;
    box-shadow: none;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    line-height: 1.8;
}

.button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.categories, .product-list, .content-section {
    padding: 50px 0;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--header-bg);
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.category-item {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    text-decoration: none;
}

.category-item h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.category-item p {
    font-size: 1.05rem;
    opacity: 0.8;
}

/* --- Page Header (pour les pages intérieures) --- */
.page-header {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.page-header h2 {
    color: #fff;
    margin-top: 0;
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header h2::after {
    background-color: #fff;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- Product List (pages catégories) --- */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.product-item {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.product-item img {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 20px;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.02);
}

.product-item h3 {
    color: var(--header-bg);
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Updated product description styling */
.product-item .description {
    font-size: 1.05rem; /* slightly larger */
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: left; /* Align left for readability */
}

.product-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
}

.product-item ul li {
    background-color: #eef;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    border-left: 3px solid var(--primary-color);
}
.product-item ul li strong {
    color: var(--header-bg);
}

/* New: User Review Section */
.user-reviews {
    background-color: var(--review-bg); /* Nouveau fond pour les avis */
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left; /* Alignement du texte des avis */
    border: 1px solid #c2e2eb;
}

.user-reviews h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.review-item {
    font-style: italic;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #a7d9e7; /* Ligne pointillée entre avis */
    font-size: 0.95rem;
}

.review-item:last-child {
    border-bottom: none; /* Pas de bordure pour le dernier avis */
}

.review-item .author {
    font-weight: bold;
    color: var(--header-bg);
    font-style: normal;
    display: block;
    margin-top: 5px;
}

/* New: Comparison Table Styling */
.comparison-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* force scroll sur petits écrans */
}

.comparison-table thead {
    background-color: #f8f8f8;
    font-weight: bold;
}

.comparison-table .feature {
    font-weight: bold;
    background-color: #fafafa;
}

.comparison-table th, .comparison-table td {
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    text-align: left;
}

.comparison-table th {
    background-color: var(--header-bg);
    color: #fff;
    font-weight: bold;
    text-align: center;
    position: sticky; /* Sticky header for comparison table */
    top: 0;
    z-index: 10;
}

.comparison-table td {
    background-color: #fff;
}

.comparison-table tbody tr:nth-child(even) td {
    background-color: var(--light-grey); /* Lignes alternées */
}

.comparison-table .feature {
    font-weight: bold;
    color: var(--primary-color);
}


.product-item .button {
    margin-top: 20px;
    width: 90%;
    align-self: center;
}

/* --- Content Section (pages simples comme A Propos, Mentions Légales) --- */
.content-section {
    padding: 40px 0;
}
.content-section p {
    margin-bottom: 18px;
    font-size: 1.15rem;
    line-height: 1.8;
}
.content-section h3 {
    color: var(--header-bg);
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 5px;
}
.content-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}


/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    font-size: 1rem;
    margin-top: 60px;
}

footer p {
    margin: 0.8rem 0;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

footer a:hover {
    color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    header p {
        font-size: 1rem;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .language-switcher {
        position: static;
        margin-top: 15px;
        text-align: center;
        padding-bottom: 15px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }
    h2::after {
        width: 60px;
    }

    .page-header h2 {
        font-size: 2.2rem;
    }

    .category-grid, .product-list {
        grid-template-columns: 1fr;
    }
    .product-item img {
        height: 200px;
    }
    .comparison-table-container {
        padding: 0 10px; /* Ajoute un peu d'espace sur les côtés */
    }
	
	 .comparison-table th,
    .comparison-table td {
        font-size: 14px;
        padding: 10px;
    }
	
    .comparison-table {
        min-width: auto; /* Supprime le min-width sur mobile */
        display: block; /* Permet le défilement */
        width: 100%; /* Force la largeur sur mobile */
    }
	
	.site-logo {
		max-width: 150px;
	}
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    header h1 {
        font-size: 1.8rem;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .product-item img {
        height: 180px;
    }
}

.tip {
      background-color: #fff;
      padding: 1rem;
      border-left: 5px solid #121212;
      margin-bottom: 1rem;
    }