html {
    scroll-padding-top: 8rem;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-txt-color: rgba(50, 51, 51, 0.8);
    --main-title-color: #1b273d;
    --main-txt-blue: #1c7bc2;
    --main-bg-blue: #27a8e0;
    --main-txt-violet: #554bb9;
    --main-txt-red: #ec398b;
    --main-txt-orange: #fac400;
}

@font-face {
    font-family: "oswald";
    src: url(./fonts/Oswald/Oswald-VariableFont.ttf);
    font-display: swap;
}
@font-face {
    font-family: "poppins";
    src: url(./fonts/poppins/Poppins-Regular.ttf);
    font-display: swap;
}
@font-face {
    font-family: "poppins-bold";
    src: url(./fonts/poppins/Poppins-Bold.ttf);
    font-display: swap;
}

::selection {
    color: white;
    background-color: var(--main-txt-blue);
}

body {
    font-family: "oswald", sans-serif;
    line-height: 1.6;
    color: var(--main-txt-color);
}

p {
    font-family: "poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fixed Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    margin: 0;
}

.navbar .logo img {
    max-width: 180px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--main-bg-blue);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    max-height: 800px;
    background: url("images/home-bg.webp") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    width: 100%;
    padding: 20px;
    max-width: 1200px;
}

.logo {
    margin-bottom: 30px;
}

.logo img {
    max-width: 250px;
    height: auto;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--main-bg-blue);
}

.hero-text {
    margin-bottom: 60px;
}

.join-us {
    font-size: clamp(24px, 5vw, 2.8rem);
    color: var(--main-bg-blue);
    margin-bottom: 10px;
    font-weight: 300;
    font-family: "oswald", -apple-system, BlinkMacSystemFont, "Segoe UI";
}

.hero-text h1 {
    font-family: "poppins-bold", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
    font-size: clamp(24px, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    line-height: 1;
}

.hero-text h1#typing-title {
    margin-bottom: 0px !important;
    position: relative;
    display: inline;
}

.hero-text h1#typing-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.5em;
    width: 100%;
    height: 12px;
    background: var(--main-txt-blue);
    z-index: -1;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.event-info {
    font-family: "oswald", sans-serif;
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    font-size: 20px;
    flex-wrap: wrap;
    color: rgb(221, 221, 221);
}

.countdown {
    display: flex;
    justify-content: left;
    gap: 40px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: "poppins-bold", sans-serif;
    font-size: clamp(24px, 5vw, 5rem);
    font-weight: 700;
    line-height: 1;
}

.countdown-item:nth-child(1) .countdown-number {
    color: var(--main-txt-red);
}

.countdown-item:nth-child(2) .countdown-number {
    color: var(--main-txt-orange);
}

.countdown-item:nth-child(3) .countdown-number {
    color: var(--main-bg-blue);
}

.countdown-item:nth-child(4) .countdown-number {
    color: var(--main-txt-violet);
}

.countdown-label {
    font-size: 12px;
    margin-top: 5px;
    letter-spacing: 1px;
    color: rgb(153, 153, 153);
}

/* What Is Section */
.what-is {
    padding: 80px 20px;
    background: white;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.text-content h2 {
    color: var(--main-title-color);
    font-size: clamp(24px, 5vw, 2.4rem);
    margin-bottom: 30px;
    font-weight: 700;
}

.text-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--main-txt-color);
}

.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    text-align: center;
}

.icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.calendar-icon {
    color: var(--main-txt-violet);
}

.location-icon {
    color: var(--main-txt-violet);
}

.twitter-icon {
    color: var(--main-txt-violet);
}

.info-item h3 {
    color: var(--main-title-color);
    font-size: clamp(20px, 5vw, 1.8rem);
    margin-bottom: 10px;
    font-weight: 700;
}

.info-item p {
    color: var(--main-txt-color);
    font-size: clamp(20px, 5vw, 1.8rem);
}

/* Where Section */
.where {
    padding: 80px 20px;
    background: #f8f8f8;
}

.where h2 {
    color: var(--main-title-color);
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 700;
}

.where p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 900px;
}

.venue-slider {
    max-width: 1200px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.slider-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: none;
}

.slider-container img.active,
.slider-container img.active-next {
    display: block;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--main-txt-violet);
}

/* Speakers Section */
.speakers {
    padding: 80px 20px;
    background: linear-gradient(
        135deg,
        var(--main-txt-violet) 0%,
        #6b5fc7 100%
    );
    color: white;
}

.speakers h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 700;
    color: white;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.speaker-card {
    background: white;
    text-align: center;
    transition: transform 0.3s;
}

.speaker-card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.speaker-card h3 {
    color: var(--main-txt-blue);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    padding: 0px 20px;
}

.speaker-card p {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    padding: 0px 20px 20px;
}

/* Agenda Section */
.agenda {
    padding: 80px 20px;
    background: var(--main-bg-blue);
    color: white;
}

.agenda h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 700;
}

.agenda-tab-container {
    display: flex;
}

.agenda-tabs {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    min-width: 250px;
    height: fit-content;
    width: 24%;
}

.tab-btn {
    background: rgba(85, 75, 185, 0.8);
    border: none;
    color: white;
    padding: 20px 40px;
    font-size: clamp(16px, 5vw, 20px);
    font-family: "oswald", sans-serif;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    flex: 1;
    text-align: end;
}

.tab-btn.active {
    background: rgba(85, 75, 185, 1);
}

.tab-btn:hover {
    background: rgba(85, 75, 185, 0.9);
}

.agenda-day {
    display: none;
}

.agenda-day.active {
    display: block;
}

.agenda-content {
    background: #554bb9;
    padding: 0.8rem;
    margin: 0 auto;
    flex: 1;
}

.agenda-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    margin-bottom: 8px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    box-shadow: inset 0 0 0 1rem #e4e7f6;
}

.agenda-item:has(.agenda-icon) {
    align-items: center;
}

.agenda-icon {
    flex-shrink: 0;
}

.agenda-icon img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.agenda-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex-shrink: 0;
}

.agenda-icons .agenda-icon img {
    width: 60px;
    height: 60px;
}

.agenda-details {
    flex: 1;
}

.agenda-time {
    color: var(--main-title-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.agenda-details h3 {
    color: var(--main-title-color);
    font-size: 22px;
    margin-bottom: 10px;
    font-family: "poppins-bold", "Courier New", Courier, monospace;
}

.agenda-details p {
    color: var(--main-txt-color);
    font-size: 15px;
    line-height: 1.6;
}

.location-text {
    font-style: normal;
    color: var(--main-txt-violet);
    font-weight: 600;
}

/* How to Come Section */
.how-to-come {
    padding: 80px 20px;
    background: #f0f0f0;
}

.how-to-come h2 {
    text-align: center;
    color: var(--main-title-color);
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 700;
}

.venue-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.venue-column {
    text-align: center;
}

.location-icon-large,
.metro-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-txt-violet);
}

.venue-column h3 {
    color: var(--main-title-color);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.venue-column p {
    color: var(--main-txt-color);
    font-size: 16px;
    line-height: 1.8;
}

.guide-btn {
    display: block;
    margin: 0 auto;
    background: var(--main-txt-blue);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-family: "oswald", sans-serif;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.guide-btn:hover {
    background: #1565a0;
}

/* Partners Section */
.partners {
    padding: 80px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    background: url("images/speakers-bg-black.jpg") center/cover no-repeat;
    color: white;
}

.partners h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 700;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    background: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    min-width: 220px;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
}

/* Footer */
.footer {
    background: url("images/footer-bg.jpg") center/cover no-repeat;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 20px;
    text-align: center;
}

.footer-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: justify;
    font-family: "oswald", "Courier New", Courier, monospace;
}

.eu-flag {
    width: 30px;
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.footer strong {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .speakers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }

    .navbar .logo img {
        max-width: 150px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text {
        text-align: center;
    }

    .countdown {
        gap: 15px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .slider-container {
        grid-template-columns: 1fr;
    }

    .slider-container img {
        height: 300px;
    }

    .slider-container img.active-next {
        display: none;
    }

    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .venue-info {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    /* Footer responsive */
    .footer-content {
        text-align: center;
        padding: 20px 0;
    }

    .footer-content p {
        font-size: 12px;
        line-height: 1.6;
    }

    .eu-flag {
        display: block;
        margin: 0 auto 10px;
    }
}

@media (max-width: 480px) {
    .speakers-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .navbar .logo img {
        max-width: 120px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .countdown-label {
        font-size: 8px;
    }

    .agenda-item {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 0 10px;
    }

    /* News pages mobile */
    .news-page {
        padding: 100px 0 60px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card-image {
        height: 180px;
    }

    .news-card-content {
        padding: 15px;
    }

    .news-card-title {
        font-size: 16px;
    }

    .news-card-excerpt {
        font-size: 13px;
    }

    .news-date {
        font-size: 10px;
    }

    .news-author {
        font-size: 10px;
    }

    /* Article pages mobile */
    .article-page {
        padding: 100px 0 60px;
    }

    .full-article {
        padding: 20px 15px;
    }

    .article-image {
        width: calc(100% + 30px);
        height: 250px;
        margin: -20px -15px 30px -15px;
    }

    .article-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .article-content {
        font-size: 14px;
    }

    .article-header {
        gap: 10px;
        margin-bottom: 20px;
    }

    .news-quote {
        padding: 20px;
        margin: 20px 0;
    }

    .news-quote p {
        font-size: 14px;
    }

    /* Footer mobile */
    .footer-content {
        padding: 15px 0;
    }

    .footer-content p {
        font-size: 11px;
    }

    .back-to-home,
    .article-footer {
        margin-top: 40px;
        padding-top: 30px;
    }

    .guide-btn {
        font-size: 12px;
        padding: 12px 24px;
    }
}

/* News Page Styles */
.news-page {
    padding: 120px 0 80px;
    background: white;
    min-height: 100vh;
}

.page-title {
    font-size: 48px;
    color: var(--main-title-color);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 30px;
}

.news-card-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-date {
    color: var(--main-txt-blue);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
}

.news-author {
    color: var(--main-txt-color);
    font-size: 12px;
}

.news-card-title {
    font-size: 20px;
    color: var(--main-title-color);
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 600;
}

.news-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--main-txt-color);
    margin-bottom: 20px;
}

.read-more {
    color: var(--main-txt-blue);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    transition: color 0.3s;
}

.news-card:hover .read-more {
    color: var(--main-bg-blue);
}

/* Article Page Styles */
.article-page {
    padding: 120px 0 80px;
    background: white;
    min-height: 100vh;
    background: #f1f1f1;
}

.full-article {
    border-radius: 8px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.article-image {
    width: calc(100% + 120px);
    height: 550px;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.article-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-title {
    font-size: 36px;
    color: var(--main-title-color);
    margin-bottom: 40px;
    line-height: 1.3;
    font-weight: 700;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--main-txt-color);
}

.article-content p {
    margin-bottom: 20px;
}

.footer-content a {
    color: var(--main-bg-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: var(--main-txt-blue);
}

.footer-content strong a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content strong a:hover {
    color: var(--main-bg-blue);
}

.article-content strong {
    color: rgba(50, 51, 51, 0.8);
    font-weight: 600;
}

.speakers-list {
    padding-left: 0;
    margin: 20px 0;
    font-family: "poppins";
}

.speakers-list li {
    padding: 10px 0;
    position: relative;
}

.news-quote {
    padding: 25px 30px;
    margin: 30px 0;
    color: var(--main-title-color);
}

.news-quote p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    font-family: "oswald";
    text-align: center;
}

.article-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.back-to-home {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.back-to-home .guide-btn,
.article-footer .guide-btn {
    display: inline-block;
}

@media (max-width: 320px) {
    .navbar .logo img {
        max-width: 100px;
    }

    .hero-text h1 {
        font-size: 20px;
    }

    .page-title {
        font-size: 24px;
    }

    .news-card-title {
        font-size: 14px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-content {
        font-size: 13px;
    }

    .guide-btn {
        font-size: 11px;
        padding: 10px 20px;
    }

    .container {
        padding: 0 8px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-card-image {
        height: 200px;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-card-title {
        font-size: 18px;
    }

    .full-article {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 36px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-content {
        font-size: 15px;
    }

    .news-quote p {
        font-size: 16px;
    }

    /* Optimisations tablette */
    .article-image {
        height: 350px;
    }

    .news-card-excerpt {
        font-size: 14px;
    }
}
