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

.homepage-container {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
    padding-top: 0;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f3f4 100%);
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    gap: 2rem;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    flex: 1;
    text-align: left;
    margin-left: 4rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
    text-decoration: none;
    color: white;
}

.btn-secondary-hero {
    background: white;
    color: #007aff;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
    border-color: #007aff;
    transform: translateY(-1px);
    text-decoration: none;
    color: #007aff;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #007aff;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    width: 50%;
    height: 600px;
    opacity: 0.8;
    z-index: 1;
    flex-shrink: 0;
    margin-right: 2rem;
}

.timeline-mockup {
    position: relative;
    width: 100%;
    height: 100%;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #007aff 0%, #34d399 25%, #8b5cf6 50%, #f59e0b 75%, #ef4444 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    animation: progressFill 8s ease-in-out infinite;
}

@keyframes progressFill {
    0%, 20% { height: 0%; }
    80%, 100% { height: 100%; }
}

/* Période label */
.timeline-period {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: white;
    padding: 16px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    animation: subtleGlow 4s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }
    50% {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    }
}

.period-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.period-years {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.timeline-event {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-event.left {
    left: 48%;
    transform: translateX(-100%);
    flex-direction: row-reverse;
}

.timeline-event.right {
    left: 52%;
    transform: translateX(0%);
    flex-direction: row;
}

.timeline-event.left .event-card.enhanced {
    margin-left: 0;
    margin-right: 1.5rem;
}

.timeline-event.right .event-card.enhanced {
    margin-left: 1.5rem;
    margin-right: 0;
}

.timeline-event.interactive:hover {
    z-index: 10;
}

.timeline-event.left.interactive:hover {
    transform: translateX(-100%) scale(1.05);
}

.timeline-event.right.interactive:hover {
    transform: translateX(0%) scale(1.05);
}

.timeline-event:nth-child(3) { animation-delay: 0.5s; }
.timeline-event:nth-child(4) { animation-delay: 1s; }
.timeline-event:nth-child(5) { animation-delay: 1.5s; }
.timeline-event:nth-child(6) { animation-delay: 2s; }
.timeline-event:nth-child(7) { animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.timeline-event.left {
    animation: floatLeft 6s ease-in-out infinite;
}

.timeline-event.right {
    animation: floatRight 6s ease-in-out infinite;
}

@keyframes floatLeft {
    0%, 100% { transform: translateX(-100%) translateY(0); }
    50% { transform: translateX(-100%) translateY(-8px); }
}

@keyframes floatRight {
    0%, 100% { transform: translateX(0%) translateY(0); }
    50% { transform: translateX(0%) translateY(-8px); }
}

.event-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid #007aff;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
    z-index: 2;
    position: relative;
}

.event-dot.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 24px rgba(0, 122, 255, 0.6);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
    }
}

.timeline-event.blue .event-dot {
    border-color: #007aff;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.timeline-event.green .event-dot {
    border-color: #34d399;
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.3);
}

.timeline-event.purple .event-dot {
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.timeline-event.orange .event-dot {
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.timeline-event.red .event-dot {
    border-color: #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

/* Cartes d'événements améliorées */
.event-card.enhanced {
    background: white;
    border-radius: 16px;
    padding: 0;
    margin-left: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 280px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.event-card.enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.event-image {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.event-image i {
    font-size: 1.5rem;
    color: #64748b;
}

.event-content {
    padding: 16px;
}

.event-content .event-date {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.event-content .event-title {
    display: block;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.2;
}

.event-description {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-impact {
    padding: 0 16px 16px;
}

.impact-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.impact-badge.high {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #92400e;
}

.impact-badge.extreme {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Couleurs spécifiques pour les événements */
.timeline-event.blue .event-image {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.timeline-event.blue .event-image i {
    color: #1d4ed8;
}

.timeline-event.green .event-image {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.timeline-event.green .event-image i {
    color: #059669;
}

.timeline-event.purple .event-image {
    background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
}

.timeline-event.purple .event-image i {
    color: #7c3aed;
}

.timeline-event.orange .event-image {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

.timeline-event.orange .event-image i {
    color: #ea580c;
}

.timeline-event.red .event-image {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

.timeline-event.red .event-image i {
    color: #dc2626;
}

/* Hero Interactive Section */
.hero-interactive-section {
    min-height: 300px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero-interactive {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* Citations avec animation verticale */
.hero-quotes {
    width:100%;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -200%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.quote.fade-in {
    opacity: 1;
    transform: translate(-50%, -50%);
    transition: transform 2s ease-in-out, opacity 3s ease-in-out;
}

.quote.fade-out {
    opacity: 0;
    transform: translate(-50%, 100%);
    transition: transform 2s ease-in-out, opacity 1s ease-in-out;
}

.quote.fade-in {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.quote.fade-out {
    opacity: 0;
    transform: translate(-50%, 100%);
}

.quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: rgba(0, 122, 255, 0.4);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 1;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    color: #2d3748;
    font-weight: 500;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    font-family: Georgia, serif;
}

.quote-author {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quote-author::before {
    content: '— ';
    color: #a0aec0;
}

/* Personnages historiques */
.hero-characters {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.character {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.character:hover {
    transform: translateY(-5px);
}

.character-silhouette {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.character.robespierre .character-silhouette {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.character.danton .character-silhouette {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.character.napoleon .character-silhouette {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.character-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
}

/* Nuage de mots */
.hero-wordcloud {
    position: relative;
    height: 200px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.word {
    position: absolute;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    animation: float 6s ease-in-out infinite;
}

.word:hover {
    transform: scale(1.1);
}

.word.large {
    font-size: 1.5rem;
}

.word.medium {
    font-size: 1.1rem;
}

.word.small {
    font-size: 0.9rem;
}

.word.blue { color: #007aff; }
.word.green { color: #34d399; }
.word.purple { color: #8b5cf6; }
.word.orange { color: #f59e0b; }
.word.red { color: #ef4444; }

/* Positionnement du nuage de mots */
.word:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.word:nth-child(2) { top: 40%; left: 70%; animation-delay: 1s; }
.word:nth-child(3) { top: 60%; left: 30%; animation-delay: 2s; }
.word:nth-child(4) { top: 30%; left: 50%; animation-delay: 3s; }
.word:nth-child(5) { top: 70%; left: 80%; animation-delay: 4s; }
.word:nth-child(6) { top: 50%; left: 15%; animation-delay: 5s; }
.word:nth-child(7) { top: 80%; left: 60%; animation-delay: 1.5s; }
.word:nth-child(8) { top: 10%; left: 80%; animation-delay: 2.5s; }
.word:nth-child(9) { top: 40%; left: 5%; animation-delay: 3.5s; }
.word:nth-child(10) { top: 15%; left: 45%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Animation des citations */
.quote {
    animation: none;
}

.quote.active {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.event-card {
    background: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-left: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-width: 120px;
}

.event-date {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.event-title {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.875rem;
}

/* Public Themes CTA Section */
.public-themes-cta-section {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    padding: 4rem 0;
    margin: 4rem 0;
}

.public-themes-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.cta-icon {
    font-size: 3rem;
    color: white;
    opacity: 0.9;
}

.cta-text h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.cta-action {
    flex-shrink: 0;
}

.btn-themes-public {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #007aff;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-themes-public:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    color: #0056b3;
    text-decoration: none;
}

.btn-themes-public i {
    transition: transform 0.3s ease;
}

.btn-themes-public:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .public-themes-cta {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 1.5rem;
    }
    
    .cta-icon {
        font-size: 2.5rem;
    }
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background: white;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.features-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: #007aff;
}

.feature-card.primary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #007aff;
}

.feature-card.accent {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #8b5cf6;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-card.accent .feature-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.feature-card p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-example {
    padding: 1rem;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.example-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #007aff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.example-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-event {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #007aff;
    flex-shrink: 0;
}

.example-images {
    display: flex;
    gap: 0.5rem;
}

.img-placeholder {
    width: 40px;
    height: 30px;
    border-radius: 4px;
}

.img-placeholder.blue { background: #007aff; }
.img-placeholder.green { background: #34d399; }
.img-placeholder.purple { background: #8b5cf6; }

.example-controls {
    display: flex;
    gap: 1rem;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.control-item i {
    color: #007aff;
}

.example-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #4b5563;
}

.example-ai {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.ai-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}

.ai-input i {
    color: #8b5cf6;
}

.ai-arrow {
    color: #8b5cf6;
    font-weight: 600;
}

.ai-output {
    background: #8b5cf6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Demo Section */
.demo-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f3f4 100%);
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.demo-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.demo-content p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.demo-preview {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.demo-timeline {
    position: relative;
}

.demo-period {
    margin-bottom: 2rem;
}

.period-label {
    display: block;
    font-size: 1.125rem;
    color: #f59e0b;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.period-bar {
    height: 12px;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border-radius: 6px;
    opacity: 0.8;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.demo-events {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-top: 2rem;
    min-height: 160px;
}

.demo-events::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #007aff 0%, #34d399 25%, #8b5cf6 50%, #f59e0b 75%, #ef4444 100%);
    z-index: 1;
    border-radius: 2px;
}

.demo-event {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-event.top {
    margin-bottom: 80px;
}

.demo-event.bottom {
    margin-top: 80px;
}

.demo-event.top .event-info {
    order: -1;
    margin-bottom: 1rem;
}

.demo-event.bottom .event-info {
    margin-top: 1rem;
}

/* Couleurs des événements */
.demo-event.blue .event-dot {
    background: #007aff;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

.demo-event.green .event-dot {
    background: #34d399;
    border-color: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.demo-event.purple .event-dot {
    background: #8b5cf6;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.demo-event.orange .event-dot {
    background: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.demo-event.red .event-dot {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.demo-event.featured .event-info {
    background: #8b5cf6;
    color: white;
    transform: scale(1.1);
}

.demo-event .event-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #d1d5db;
    transition: all 0.3s ease;
    position: relative;
}

.event-info {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    min-width: 120px;
}

.event-date {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.event-title {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
}

.demo-event.featured .event-date {
    color: rgba(255, 255, 255, 0.8);
}

.demo-event.featured .event-title {
    color: white;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

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

.cta-primary {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
    text-decoration: none;
    color: white;
}

.cta-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    color: white;
}

/* User Info */
.user-info {
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    font-weight: 500;
    color: #4b5563;
}

.user-badge i {
    color: #007aff;
}

.admin-indicator {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        gap: 2rem;
    }
    
    .hero-visual {
        opacity: 0.6;
        width: 300px;
        height: 400px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        min-height: auto;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        text-align: center;
        margin:0px;
    }
    
    .hero-interactive {
        order: 1;
        padding: 1rem;
    }
    
    .hero-quotes {
        height: 150px;
        padding: 1rem;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }

    .quote-author {
        font-size: 1rem;
    }
    
    .quote {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-header h2,
    .demo-content h2,
    .cta-container h2 {
        font-size: 2rem;
    }
    
    .demo-events {
        flex-direction: column;
        gap: 1rem;
        min-height: auto;
    }
    
    .demo-events::before {
        display: none;
    }
    
    .demo-event.top,
    .demo-event.bottom {
        margin: 0;
    }
    
    .demo-event.top .event-info {
        order: 1;
        margin-bottom: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section,
    .features-section,
    .demo-section,
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .hero-interactive-section {
        padding: 2rem 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Public Content Section */
.public-content-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    margin-top: 3rem;
}

.content-header {
    text-align: center;
    margin-bottom: 3rem;
}

.content-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.content-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.content-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
}

.content-card.themes .content-card-icon {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: white;
}

.content-card.periods .content-card-icon {
    background: linear-gradient(135deg, #34c759 0%, #30b85a 100%);
    color: white;
}

.content-card {
    text-align: center;
}

.content-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.content-card-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.content-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
    margin-top: 0.5rem;
}

.content-card-link:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35);
    background: linear-gradient(135deg, #0056b3 0%, #4a47c4 100%);
}

.content-card-link i {
    transition: transform 0.2s ease;
}

.content-card-link:hover i {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .content-header h2 {
        font-size: 2rem;
    }
    
    .content-header p {
        font-size: 1.1rem;
    }
}