/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --violet-primary: #6B2D8F;
    --violet-dark: #4A1D63;
    --violet-light: #8B4DB8;
    --rose-primary: #E91E8C;
    --rose-light: #FF6BB5;
    --rose-pale: #FFE5F3;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-text: #333333;
    --gray-medium: #666666;
}

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

/* Header et Navigation */
header {
    background: linear-gradient(135deg, var(--violet-primary) 0%, var(--rose-primary) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
}

nav a:hover,
nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--violet-light) 0%, var(--rose-light) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Sections */
section {
    margin-bottom: 3rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

section h2 {
    color: var(--violet-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--rose-primary);
}

section h3 {
    color: var(--violet-dark);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

section h4 {
    color: var(--violet-primary);
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

/* Listes */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

ul li::marker {
    color: var(--rose-primary);
}

/* Cards */
.card {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--violet-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(107, 45, 143, 0.2);
}

.card h3 {
    margin-top: 0;
}

/* Boutons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--violet-primary) 0%, var(--rose-primary) 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 45, 143, 0.3);
}

.btn-download {
    background: var(--rose-primary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.btn-download:hover {
    background: var(--rose-light);
}

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

.grid-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--rose-pale);
    transition: all 0.3s ease;
}

.grid-item:hover {
    border-color: var(--rose-primary);
    box-shadow: 0 5px 20px rgba(233, 30, 140, 0.15);
}

/* Badges */
.badge {
    display: inline-block;
    background: var(--rose-pale);
    color: var(--violet-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Prompts section */
.prompt-item {
    background: var(--white);
    border: 2px solid var(--violet-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.prompt-item:hover {
    border-color: var(--rose-primary);
    box-shadow: 0 5px 20px rgba(107, 45, 143, 0.15);
}

.prompt-item h3 {
    color: var(--violet-primary);
    margin-top: 0;
}

.prompt-item p {
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

/* Glossaire */
.glossary-term {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--rose-primary);
}

.glossary-term h3 {
    color: var(--violet-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Icônes */
.icon {
    color: var(--rose-primary);
    margin-right: 0.5rem;
}

/* Alertes */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(107, 45, 143, 0.1);
    border-color: var(--violet-primary);
    color: var(--violet-dark);
}

.alert-warning {
    background: rgba(233, 30, 140, 0.1);
    border-color: var(--rose-primary);
    color: var(--violet-dark);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--violet-dark) 0%, var(--violet-primary) 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer a {
    color: var(--rose-light);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    nav a {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Code blocks */
code {
    background: var(--gray-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--violet-dark);
}

/* Links internes */
.internal-link {
    color: var(--violet-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--rose-light);
    transition: all 0.3s ease;
}

.internal-link:hover {
    color: var(--rose-primary);
    border-bottom-color: var(--violet-primary);
}

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

th {
    background: linear-gradient(135deg, var(--violet-primary) 0%, var(--rose-primary) 100%);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

tr:hover {
    background: var(--rose-pale);
}
