:root {
    --primary-color: #2c3e50;
    --secondary-color: #27ae60;
    --accent-color: #e74c3c;
    --background-color: #f9f9f9;
    --text-color: #333;
    --white: #ffffff;
    --font-size-base: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: var(--font-size-base);
}

header {
    background: transparent;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: sticky;
    top: 10px;
    z-index: 1000;
    pointer-events: none;
}

nav {
    pointer-events: auto;
    background: #2c3e50;
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

nav:hover {
    transform: translateY(-2px);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

nav a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

nav a.active {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

nav a i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

nav a:hover i {
    transform: scale(1.2);
}

@keyframes navItemFall {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navItemSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

nav ul li {
    opacity: 0;
}

.home-page nav ul li {
    animation: navItemFall 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.internal-page nav ul li {
    animation: navItemSlide 0.5s ease-out forwards;
}

nav ul li:nth-child(1) { animation-delay: 0.1s; }
nav ul li:nth-child(2) { animation-delay: 0.2s; }
nav ul li:nth-child(3) { animation-delay: 0.3s; }
nav ul li:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: 60vh;
    animation: fadeIn 0.8s ease-out;
    min-height: 60vh;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    text-align: center; /* Centrage des titres */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

p {
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero {
    text-align: center;
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: #219150;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--secondary-color);
}

/* Search Bar */
.search-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#scamSearch {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s;
}

#scamSearch:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.2);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.2rem;
}

/* Verification Tool Box */
.verification-tool {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e8f8f5;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
    font-size: 0.95rem;
}

.verification-tool a {
    color: #16a085;
    font-weight: bold;
    text-decoration: underline;
}

.verification-tool a:hover {
    color: #1abc9c;
}

/* Alert Box */
.alert-box {
    background-color: #fff3cd;
    border-left: 6px solid #ffc107;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}


.alert-box:hover {
    transform: scale(1.02);
}

.alert-box h3 {
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.alert-box ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
    display: inline-block;
    text-align: left;
}

.alert-box {
    text-align: center;
}

/* Accordion Styles for Scams */
.accordion-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

.accordion-header {
    padding: 1.5rem;
    background-color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f0f9f4;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.accordion-title i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 30px;
    text-align: center;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}

.accordion-body {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    color: #555;
    text-align: left; /* Garder le texte de l'accordéon lisible à gauche */
}

.accordion-body p {
    text-align: left;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tip-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.tip-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Checklist */
.checklist {
    list-style: none;
}

.checklist li {
    background: var(--white);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checklist i {
    color: var(--secondary-color);
    margin-top: 5px;
}

/* App List */
.app-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-card {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    min-width: 60px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header adjustments */
    header {
        padding: 0.5rem 0;
        top: 5px;
    }

    nav {
        border-radius: 20px;
        padding: 0.5rem;
        width: 95%;
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        gap: 5px;
        padding: 0;
    }

    nav li {
        width: auto;
        flex: 1;
    }

    nav a {
        justify-content: center;
        flex-direction: column;
        padding: 0.5rem;
        font-size: 0.8rem;
        gap: 4px;
        text-align: center;
        border-radius: 15px;
    }

    nav a i {
        font-size: 1.2rem;
    }

    /* Typography */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
        width: 90%;
    }

    /* Accordion */
    .accordion-header {
        padding: 1rem;
    }

    .accordion-title {
        font-size: 1rem;
        gap: 10px;
    }
    
    .accordion-title i {
        font-size: 1.2rem;
        width: 25px;
    }

    /* Cards */
    .feature-card, .tip-card, .app-card {
        padding: 1.5rem;
    }
    
    .app-card {
        flex-direction: column;
        text-align: center;
    }
    
    .app-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* Search Bar */
    .search-container {
        width: 100%;
        padding: 0 10px;
    }

    #scamSearch {
        font-size: 1rem;
        padding: 0.8rem 1rem;
        padding-right: 2.5rem;
    }
}
