/* FediMTL - Main Styles */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #CB2222;
    --primary-contrast: #002642;
    --accent: #E59500;



    --dark: #02040F;
    --light: #E5DADA;

    --white: #FAF8F8;

    --shadow-sm: 0 1px 3px rgba(2, 4, 15, 0.1);
    --shadow-md: 0 4px 6px rgba(2, 4, 15, 0.15);
    --shadow-lg: 0 10px 25px rgba(2, 4, 15, 0.2);
    --border-radius: 8px;
    --transition-hover: all 0.3s ease;
    --transition-target: all 1s ease 0.5s;
}

/* ===== Language Toggle ===== */
[lang="en"] .fr {
    display: none;
}

[lang="fr"] .en {
    display: none;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-contrast);
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-hover);
}

a:hover {
    color: var(--primary-contrast);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-hover);
    text-decoration: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--light);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.125rem;
}

/* ===== Header ===== */
.site-header {
    background: var(--light);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.site-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-toggle {
    background: var(--light);
    color: var(--primary-contrast);
    border: 1px solid var(--dark);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-hover);
}

.lang-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--primary-contrast);
    font-weight: 500;
    transition: var(--transition-hover);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-cta {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--border-radius);
}

.nav-cta:hover {
    background: var(--primary-contrast);
    transform: translateY(-1px);
}

/* ===== Hero Section ===== */
.hero {
    background: url('../images/background/WallsBackgroundOrange.svg') center/cover no-repeat;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    flex-wrap: wrap;
}

.hero-date,
.hero-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero .btn-primary {
    font-size: 1.125rem;
}

/* ===== Section Styles ===== */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-contrast);
}

/* ===== About Section ===== */
.about {
    background: url('../images/background/WallsBackgroundLight.svg') center/cover no-repeat;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--primary-contrast);
    margin-bottom: 3rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-hover);
}

.highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.highlight h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight p {
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ===== Speakers Section ===== */
.speakers {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.floating-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-circle {
    position: absolute;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid;
    background: transparent;
    opacity: 0.5;
    animation: float-drift 30s ease-in-out infinite;
}

@keyframes float-drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(var(--drift-x), var(--drift-y));
    }
}

.speakers .container {
    position: relative;
    z-index: 1;
}

.speakers .section-title {
    color: var(--white);
}

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

.speaker-card {
    background: var(--white);
    border: 1px solid var(--dark);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition-hover);
}

.speaker-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.speaker-card:target,
.speaker-card.targeted {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    transition: var(--transition-target);
}

.speaker-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-contrast);
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-info {
    text-align: center;
}

.speaker-name {
    font-size: 1.5rem;
    color: var(--primary-contrast);
    margin-bottom: 0.5rem;
}

.speaker-name a {
    color: inherit;
    text-decoration: none;
}

.speaker-name a:hover {
    text-decoration: underline;
}

.speaker-title {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.speaker-bio {
    color: var(--primary-contrast);
    font-size: 0.95rem;
    line-height: 1.6;
}

.speakers-cta {
    text-align: center;
    margin-top: 3rem;
}

.speakers-cta-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

/* ===== Schedule Section ===== */
.schedule {
    background: url('../images/background/WallsBackgroundLight.svg') center/cover no-repeat;
}

.schedule-date {
    text-align: center;
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 3rem;
}

.schedule-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-contrast);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-hover);
    align-items: flex-start;
}


.schedule-item:target,
.schedule-item.targeted {
    box-shadow: var(--shadow-md);
    transform: translateX(20px);
    border-left-color: var(--primary-color);
    transition: var(--transition-target);
}

@keyframes highlight-slide {
    0% {
        transform: translateX(0);
        box-shadow: var(--shadow-sm);
        border-left-color: var(--primary-contrast);
    }
    50% {
        border-left-color: var(--primary-color);
    }
    100% {
        transform: translateX(5px);
        box-shadow: var(--shadow-md);
        border-left-color: var(--primary-color);
    }
}

.schedule-time {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.125rem;
    min-width: 100px;
}

.schedule-content h3 {
    color: var(--primary-contrast);
    margin-bottom: 0.25rem;
}

.schedule-content p {
    color: var(--dark);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.schedule-content .schedule-description {
    color: var(--primary-contrast);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.schedule-content {
    flex: 1;
}

.schedule-speaker {
    text-align: right;
    font-weight: 700;
    color: var(--primary-contrast);
    min-width: 180px;
    padding-left: 1rem;
    margin-left: auto;
}

.schedule-speaker a {
    color: inherit;
    text-decoration: none;
}

.schedule-speaker a:hover {
    text-decoration: underline;
}

/* ===== Venue Section ===== */
.venue {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.venue .container {
    position: relative;
    z-index: 1;
}

.venue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.venue-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.venue-address {
    font-size: 1.125rem;
    color: var(--primary-contrast);
    margin-bottom: 2rem;
}

.venue-details,
.venue-accessibility {
    margin-bottom: 2rem;
}

.venue-details h4,
.venue-accessibility h4 {
    color: var(--primary-contrast);
    margin-bottom: 0.75rem;
}

.venue-details p,
.venue-accessibility p {
    color: var(--primary-contrast);
    line-height: 1.8;
}

.venue-map {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.venue-map a {
    display: block;
    position: relative;
}

.venue-map img {
    width: 100%;
    height: auto;
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: color-mix(in srgb, var(--accent) 90%, transparent);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition-hover);
}

.venue-map a:hover .map-overlay {
    opacity: 1;
}

/* ===== Registration Section ===== */
.register {
    background: url('../images/background/WallsBackgroundOrange.svg') center/cover no-repeat;
    color: white;
    text-align: center;
}

.register-content {
    max-width: 700px;
    margin: 0 auto;
}

.register .section-title {
    color: white;
}

.register-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.register-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.ticket-info h3 {
    margin-bottom: 1rem;
}

.ticket-info p {
    font-size: 1.125rem;
    line-height: 2;
}

.register .btn-primary {
    margin-bottom: 1rem;
}

.register-note {
    font-size: 0.875rem;
    opacity: 0.8;
    font-style: italic;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--primary-contrast);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-hover);
}

.footer-section a:hover {
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin: 0;
}

/* ===== Development Overlay ===== */
.dev-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(39, 24, 126, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dev-overlay.hidden {
    display: none;
}

.dev-overlay-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.dev-overlay-content p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-contrast);
    margin-bottom: 2rem;
}

.dev-overlay-content .btn {
    min-width: 150px;
}
