/* ============================================
   FaireSonSiteInternet.com - Styles
   Design moderne minimaliste
   ============================================ */

/* Variables CSS */
:root {
    --primary-color: #1a73e8;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --text-gray: #666666;
    --border-gray: #e0e0e0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    transition: opacity 0.3s;
}

.logo:hover .logo-text {
    opacity: 0.8;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a svg {
    vertical-align: middle;
    margin-top: -2px;
}

.nav-menu a:has(svg)::after {
    display: none;
}

.search-icon {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu déroulant */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s;
    display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--dark-gray);
    transition: all 0.3s;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1557b0 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Section */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.card-link:hover {
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-section {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Content Sections */
.content-section {
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Images et médias */
.content-section img,
.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

.content-section img.align-left {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    max-width: 300px;
}

.content-section img.align-right {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    max-width: 300px;
}

.content-section img.align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.content-section figure {
    margin: 2rem 0;
    text-align: center;
}

.content-section figure img {
    margin: 0 auto;
}

.content-section figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Emoji */
.emoji {
    font-style: normal;
    font-size: 1.2em;
    vertical-align: middle;
    line-height: 1;
}

/* Liens externes */
a[href^="http"]:not([href*="fairesonsiteinternet.com"]),
a.external-link {
    position: relative;
    padding-right: 1.2em;
}

a[href^="http"]:not([href*="fairesonsiteinternet.com"])::after,
a.external-link::after {
    content: "↗";
    position: absolute;
    right: 0;
    font-size: 0.8em;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
    margin-left: 0.2em;
}

a[href^="http"]:not([href*="fairesonsiteinternet.com"]):hover::after,
a.external-link:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Table */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

table th {
    font-weight: 600;
}

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

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

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 80px 0;
}

.error-page h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.error-page p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Blog Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-card-content {
    padding: 1.5rem;
}

.article-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
}

.article-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-badge {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--text-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Fil d'Ariane (Breadcrumb) */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-gray);
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-gray);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

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

.breadcrumb li:last-child {
    color: var(--dark-gray);
    font-weight: 500;
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1557b0;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Partage social */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s, transform 0.3s;
    border: 1px solid var(--border-gray);
}

.share-button:hover {
    background-color: var(--border-gray);
    transform: translateY(-2px);
}

.share-button.facebook:hover {
    background-color: #1877f2;
    color: var(--white);
    border-color: #1877f2;
}

.share-button.twitter:hover {
    background-color: #1da1f2;
    color: var(--white);
    border-color: #1da1f2;
}

.share-button.linkedin:hover {
    background-color: #0077b5;
    color: var(--white);
    border-color: #0077b5;
}

/* Liens "À lire aussi" */
.read-also {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.read-also h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.read-also-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.read-also-links a {
    display: block;
    padding: 1rem;
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.3s;
}

.read-also-links a:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.read-also-links a::before {
    content: '→ ';
    color: var(--primary-color);
    font-weight: bold;
}

/* FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
}

.faq-question {
    padding: 1.5rem;
    margin: 0;
    background-color: var(--light-gray);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #eeeeee;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 1.5rem;
}

.faq-answer p,
.faq-answer ul {
    margin-bottom: 1rem;
}

/* Ressources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.resource-card {
    padding: 1.5rem;
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.resource-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.resource-card h3 a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.resource-card h3 a.external-link::after {
    font-size: 0.7em;
    margin-left: 0.3em;
}

.resource-card p {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Plan du site */
.sitemap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.sitemap-section {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.sitemap-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.sitemap-links {
    list-style: none;
    padding: 0;
}

.sitemap-links li {
    margin-bottom: 0.5rem;
}

.sitemap-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.sitemap-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.sitemap-themes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.sitemap-themes h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.sitemap-themes ul {
    list-style: none;
    padding: 0;
}

.sitemap-themes li {
    margin-bottom: 0.5rem;
}

.sitemap-themes a {
    color: var(--primary-color);
    text-decoration: none;
}

.sitemap-themes a:hover {
    text-decoration: underline;
}

/* Recherche */
.search-form-container {
    max-width: 600px;
    margin: 2rem auto;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results {
    margin-top: 2rem;
}

.search-result-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.search-result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-item h3 {
    margin-bottom: 0.75rem;
}

.search-result-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.search-result-item h3 a:hover {
    text-decoration: underline;
}

.search-result-item p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.search-result-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.search-result-link:hover {
    opacity: 0.8;
}

.search-no-results {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin-top: 2rem;
}

.search-no-results ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.search-no-results li {
    margin-bottom: 0.5rem;
}

.search-no-results a {
    color: var(--primary-color);
    text-decoration: none;
}

.search-no-results a:hover {
    text-decoration: underline;
}

/* Optimisation des polices - Inter chargé via Google Fonts avec font-display: swap */

/* Lazy loading pour les images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Amélioration accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible pour navigation clavier */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   Nouvelles fonctionnalités avec impact
   ============================================ */

/* Barre de progression de lecture */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #1557b0);
    z-index: 1001;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.3);
}

/* Animations au scroll (fade-in) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

/* Tooltips / Infobulles */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background-color: var(--dark-gray);
    color: var(--white);
    font-size: 0.85rem;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark-gray);
    margin-bottom: -5px;
}

/* Badges visuels */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.badge-new {
    background-color: #10b981;
    color: var(--white);
}

.badge-popular {
    background-color: #f59e0b;
    color: var(--white);
}

.badge-featured {
    background-color: var(--primary-color);
    color: var(--white);
}

.badge-free {
    background-color: #8b5cf6;
    color: var(--white);
}

/* Amélioration des CTA avec animations */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(26, 115, 232, 0);
    }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-shine:hover::before {
    left: 100%;
}

/* Statistiques / Compteurs */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Highlight / Surbrillance */
.highlight {
    background: linear-gradient(120deg, rgba(26, 115, 232, 0.1) 0%, rgba(26, 115, 232, 0.05) 100%);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-gray);
        margin: 0;
        padding: 0;
        min-width: auto;
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu li {
        padding: 0;
    }

    .nav-dropdown-menu a {
        padding: 0.75rem 1rem;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
        max-width: 300px;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .share-buttons {
        justify-content: center;
    }

    .read-also-links {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .sitemap-container {
        grid-template-columns: 1fr;
    }

    .sitemap-themes {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .content-section img.align-left,
    .content-section img.align-right {
        float: none;
        display: block;
        margin: 1.5rem auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .section {
        padding: 40px 0;
    }

    .error-page h1 {
        font-size: 3rem;
    }

    .nav-menu {
        gap: 0;
    }
}
