:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --light-gray: #ecf0f1;
    --primary-color-light: #465565;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: -.5px;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    margin:5px 0;
}

h2,h3 {
margin:20px 0 10px 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -.5px;
}

.title1 {
    font-size: 1.5rem;
    margin-bottom: 0rem;
    font-weight: bold;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-form {
    max-width: 800px;
    margin: 0 auto;
}

.search-inputs {
    display: flex;
    gap: 1rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.featured-sites {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: white;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .search-inputs {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}

/* Styles communs pour les fiches de sites */
.site-header {
    text-align: center;
    margin-bottom: 2rem;
}

.site-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-info h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.site-info p {
    margin-bottom: 0.5rem;
}

.site-info a {
    color: #3498db;
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

.breadcrumb {
    margin: 1rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.custom-content {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.custom-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.subcategory-card img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

ul,ol {
    padding-left: 2rem;
    margin: 1rem 0;
}

li {
    margin-bottom: 0.3rem;
} 

.category-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .site-card {
            background: white;
            background-image: url("/images/pgs-watermark-mini.png");
            background-repeat: repeat;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .site-card h3 {
            margin-bottom: 1rem;
            color: #2c3e50;
        }
        .site-card p {
            margin-bottom: 0.5rem;
        }
        .site-card a {
            color: #3498db;
            text-decoration: none;
        }
        .site-card a:hover {
            text-decoration: underline;
        }
        .category-description {
            max-width: 800px;
            /*margin: 0 auto 2rem;*/
            margin: 2rem auto 2rem;
            padding: 1rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .category-card img {
            max-width: 100%;
            height: auto;
        }

        .subcategories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        .subcategory-card {
            background: var(--primary-color-light);
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            text-align: center;
            color: var(--light-gray);
        }
        .subcategory-card h3 {
            color: white;
            margin-bottom: 1rem;
        }
        .subcategory-card a {
            color: #3498db;
            text-decoration: none;
            font-weight: bold;
        }
        .subcategory-card a:hover {
            text-decoration: underline;
        }


        .site-profile {
            max-width: 800px;
            margin: 2rem auto;
            padding: 2rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .site-seal {
            margin: 1rem 0;
        }
        .site-description {
            margin: 1.5rem 0;
            line-height: 1.8;
        }
        .site-details {
            margin: 1.5rem 0;
        }
        .site-details dt {
            font-weight: bold;
            margin-top: 1rem;
        }
        .site-details dd {
            margin-left: 0;
            margin-bottom: 1rem;
        }


        .category-card {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            text-align: center;
        }
        .category-card h3 {
            color: #2c3e50;
            margin-bottom: 1rem;
        }
        .category-card a {
            color: #3498db;
            text-decoration: none;
            font-weight: bold;
        }
        .category-card a:hover {
            text-decoration: underline;
        }
        
/*        .featured-sites {
            margin-top: 3rem;
        }*/

        .featured-sites h2 {
            text-align: center;
            margin-bottom: 2rem;
        }

        .site-info {
            margin-bottom: 20px;
            border-top: 5px solid #555;
            border-bottom: 5px solid #555;
            padding-bottom: 30px;
        }
        .site-info h2 {
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .footer-links {
            margin: 20px 0;
        }

/* Styles pour la table des exigences */
.requirements-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Wrapper pour le scroll horizontal */
.requirements-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.requirements-table tr {
    transition: background-color 0.3s ease;
}

.requirements-table tr:hover {
    background-color: var(--light-gray);
}

.requirements-table th,
.requirements-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1rem;
    line-height: 1.5;
    min-width: 200px; /* Largeur minimale pour chaque cellule */
}

.requirements-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.requirements-table tr:last-child td {
    border-bottom: none;
}

.requirements-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

.requirements-table td:last-child {
    color: #27ae60;
}

/* Styles spécifiques pour mobile */
@media (max-width: 768px) {
    .requirements-table th,
    .requirements-table td {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-width: 150px; /* Largeur minimale réduite sur mobile */
    }

    /* Ajout d'un indicateur de défilement */
    .requirements-table-wrapper::after {
        content: "→";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: white;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 16px;
        pointer-events: none;
        animation: fadeOut 2s forwards;
        animation-delay: 3s;
    }

    @keyframes fadeOut {
        from { opacity: 1; }
        to { opacity: 0; }
    }
}

.logobreadcrumb {
    margin-bottom: -4px;
}

        .section1 {
            margin-top: 4rem;
            margin-bottom: 4rem;
            padding: 10px 10px 30px 10px;
            border-top: 5px solid #555;
            border-bottom: 5px solid #555;
            background-color: #ffffff;
            
        }
        .section1 h2 {
            color: #2c3e50;
            margin-bottom: 10px;
        }