/* Glossaire GEO Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    font-size: 16px;
    background: #f8f9fa;
}

.main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .main {
        width: 90%;
        margin: 10px auto;
        padding: 0 10px;
    }
}

/* Header Section */
.header-section {
    border-radius: 15px;
    padding: 0 50px 0 50px;
    text-align: center;
}

.header-section h1 {
    font-size: 2.2em;
    color: darkorange;
    font-weight: 1000;
    margin-bottom: 20px;
    line-height: 1.2;
    margin: 100px 0 20px 0;
}

.header-section .subtitle {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.header-section .description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #555;
}

/* Search Bar */
.search-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: darkorange;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

/* Navigation Categories */
.category-nav {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.category-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

/* Style par défaut pour tous les boutons (orange) */
.category-btn.active,
.category-btn:hover {
    background: darkorange;
    color: white;
    border-color: darkorange;
}

/* Style pour le bouton Technologies IA (bleu) */
.category-btn[data-category="technology"].active,
.category-btn[data-category="technology"]:hover {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* Style pour le bouton Signaux de Confiance (vert) */
.category-btn[data-category="trust"].active,
.category-btn[data-category="trust"]:hover {
    background: #2ecc71;
    border-color: #2ecc71;
    color: white;
}

/* Style pour le bouton Pratiques & Applications (violet) */
.category-btn[data-category="practice"].active,
.category-btn[data-category="practice"]:hover {
    background: #9b59b6;
    border-color: #9b59b6;
    color: white;
}

/* Style pour le bouton Stratégies GEO (orange) */
.category-btn[data-category="strategy"].active,
.category-btn[data-category="strategy"]:hover {
    background: darkorange;
    border-color: darkorange;
    color: white;
}

/* Glossary Grid */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .glossary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Term Cards */
.term-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.term-card.strategy {
    border-left-color: darkorange;
}

.term-card.technology {
    border-left-color: #3498db;
}

.term-card.trust {
    border-left-color: #27ae60;
}

.term-card.practice {
    border-left-color: #9b59b6;
}

.term-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.term-icon {
    font-size: 1.5em;
    margin-right: 12px;
    width: 40px;
    text-align: center;
}

.term-card.strategy .term-icon {
    color: darkorange;
}

.term-card.technology .term-icon {
    color: #3498db;
}

.term-card.trust .term-icon {
    color: #27ae60;
}

.term-card.practice .term-icon {
    color: #9b59b6;
}

.term-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.term-acronym {
    background: #f8f9fa;
    color: #666;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-left: 10px;
}

.term-content {
    color: #555;
    line-height: 1.7;
}

.term-content strong {
    color: #2c3e50;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1em;
}

.no-results i {
    font-size: 3em;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

/* CTA Section */
.cta-section {
    background: white;
    border: 2px solid darkorange;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
}

.cta-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.cta-section p {
    margin-bottom: 25px;
    color: #555;
    font-size: 1.1em;
}

.cta-button {
    background: darkorange;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #e6830d;
    transform: scale(1.05);
}

/* Intro Box */
.intro-box {
    background: hsl(39deg 100% 68%/18%);
    border: 1px solid darkorange;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.intro-box .icon {
    font-size: 2.5em;
    color: darkorange;
    margin-bottom: 15px;
}

.intro-box h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.6em;
}

.intro-box p {
    font-size: 1.1em;
    color: #555;
}

/* Style pour le lien 'En savoir plus' dans les cartes */
.learn-more-container {
    margin-top: 10px;
}

.learn-more-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.learn-more-link i {
    color: darkorange;
}

.learn-more-link:hover {
    text-decoration: underline;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
}

.glossaire-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Reset des styles de base.html qui pourraient interférer */
.main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Assurez-vous que les sections s'empilent correctement */
.header-section,
.intro-box,
.search-container,
.category-nav,
.glossary-grid,
.no-results,
.cta-section {
    width: 100%;
    float: none;
    clear: both;
}