/* ============================================
   OFSB - Office Fédéral du Bon Sens
   Stylesheet officiel
   ============================================ */

/* Variables de couleurs */
:root {
    --color-dark-teal: #014040;
    --color-medium-teal: #02735E;
    --color-bright-teal: #03A678;
    --color-orange: #F27405;
    --color-dark-red: #731702;
    --color-white: #ffffff;
    --color-light-gray: #f5f5f5;
    --color-gray: #e0e0e0;
    --color-dark-gray: #333333;
    --color-text: #2c2c2c;
    --color-text-light: #666666;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-dark-teal) 0%, var(--color-medium-teal) 100%);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a:hover {
    color: var(--color-bright-teal);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-bright-teal);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-medium-teal) 0%, var(--color-bright-teal) 100%);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark-teal);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-bright-teal), var(--color-orange));
}

/* Section Présentation */
.presentation {
    background-color: var(--color-light-gray);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.text-content {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.text-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-dark-teal);
    margin-bottom: 2rem;
}

.text-content .highlight {
    background: linear-gradient(135deg, rgba(3, 166, 120, 0.1), rgba(242, 116, 5, 0.1));
    padding: 1.5rem;
    border-left: 4px solid var(--color-orange);
    border-radius: 5px;
    margin: 2rem 0;
}

.text-content strong {
    color: var(--color-dark-teal);
    font-weight: 600;
}

/* Section Conseils */
.conseils {
    background-color: var(--color-white);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.conseils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.conseil-card {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-gray) 100%);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-bright-teal);
    position: relative;
}

.conseil-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.conseil-card:nth-child(2n) {
    border-top-color: var(--color-orange);
}

.conseil-card:nth-child(3n) {
    border-top-color: var(--color-medium-teal);
}

.conseil-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-dark-teal), var(--color-medium-teal));
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.conseil-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-dark-teal);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.conseil-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* Section Théories du Complot */
.complots {
    background: linear-gradient(135deg, var(--color-light-gray) 0%, #fafafa 100%);
}

.complots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.complot-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--color-dark-red);
    position: relative;
}

.complot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.complot-card:nth-child(2n) {
    border-left-color: var(--color-orange);
}

.complot-card:nth-child(3n) {
    border-left-color: var(--color-medium-teal);
}

.complot-card:nth-child(4n) {
    border-left-color: var(--color-bright-teal);
}

.complot-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.complot-card-link:hover {
    border-left-width: 6px;
}

.link-indicator {
    color: var(--color-orange);
    font-weight: 600;
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.complot-card-link:hover .link-indicator {
    transform: translateX(5px);
}

.complot-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.complot-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark-teal);
    margin-bottom: 1.5rem;
    text-align: center;
}

.complot-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.complot-text strong {
    color: var(--color-dark-teal);
    font-weight: 600;
}

.complots-conclusion {
    margin-top: 4rem;
    background: linear-gradient(135deg, rgba(1, 64, 64, 0.05), rgba(3, 166, 120, 0.05));
    padding: 2.5rem;
    border-radius: 10px;
    border: 2px solid var(--color-bright-teal);
}

.conclusion-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    text-align: center;
    font-style: italic;
}

.conclusion-text strong {
    color: var(--color-dark-teal);
    font-weight: 600;
    font-style: normal;
}

/* Styles pour la page détaillée */
.evidence-box {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-gray);
}

.evidence-box ul {
    list-style-type: disc;
}

.evidence-box li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-medium-teal), var(--color-bright-teal));
    color: var(--color-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-container a {
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: var(--color-dark-teal);
    color: var(--color-white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .conseils-grid {
        grid-template-columns: 1fr;
    }

    .text-content {
        padding: 2rem 1.5rem;
    }

    .conseil-card {
        padding: 2rem 1.5rem;
    }

    .complots-grid {
        grid-template-columns: 1fr;
    }

    .complot-card {
        padding: 2rem 1.5rem;
    }

    .complots-conclusion {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .text-content .lead {
        font-size: 1.1rem;
    }
}
