html[lang]:not([lang="en"]) *[lang="en"] {
    display: none !important;
}

html[lang]:not([lang="fr"]) *[lang="fr"] {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --dec-white: #fefefe;
    --dec-grey: #2c2e30;
    --dfq-red: hsl(359, 62%, 39%);
    --dfq-red-l1: hsl(10, 72%, 49%);
    --dfq-red-l3: hsl(3, 82%, 63%);
    --dfq-red-l3_5: hsl(3, 85%, 78%);
    --dfq-red-l4: hsl(0, 90%, 94%);
    --dfq-red-l5: hsl(0, 90%, 98%);
    --dfq-blue-d5: #2c3e50;
}

body {
    font-family: "Roboto", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
header {
    background: var(--dec-white);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    flex-wrap: wrap;
    gap: 0 0.75rem;
}

.logo {
    position: relative;
    width: 150px;
    height: 80px;
    background-image: url("/assets/dec_dark_logo_small.png");
    background-size: 150px 150px;
    background-repeat: no-repeat;
    background-position: center center;
}

nav {
    margin: auto;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-items: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

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

.nav-links li:nth-child(1) {
    text-align: right;
}

.nav-links li:nth-child(2) {

}

.nav-links li:nth-child(3) {
    text-align: left;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover:not(.logo) {
    color: var(--dfq-red);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    color: white;
    text-align: center;
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
    background: url("/assets/dec_red_background_bare.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
    color: black;
    font-weight: bold;
}

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

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

.detail-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dec-white);
}

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

.btn {
    padding: 1rem 2rem;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--dfq-red-l1), var(--dfq-red-l3));
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    background: white;
    margin: -50px 0 0 0;
    position: relative;
    z-index: 3;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

.main-content.no-hero {
    padding-top: 6rem;
}

.section {
    padding: 2rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--dfq-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subsection-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dfq-red);
}

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

.program-card {
    background: var(--dfq-red-l5);
    padding: 2rem;
    border-left: 5px solid var(--dfq-red-l3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-card h3 {
    color: var(--dfq-red-l1);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.press-card {
    background: var(--dfq-red-l5);
    padding: 2rem;
    border-left: 5px solid var(--dfq-red-l3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.press-card h3 {
    color: var(--dfq-red-l1);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.press-card a {
    color: var(--dfq-red);
}

.drone-models {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.drone-model {
    background: var(--dfq-red-l3);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.drone-model:hover {
    transform: scale(1.05);
}

.drone-model-img {
    width: 100%;
    aspect-ratio: 1/1;
    background-size: contain;
    background-position: center;
    background-color: white;
    background-repeat: no-repeat;
}


.conferences {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin: 2rem 0;
}

.conference {
    position: relative;
    background: white;
    padding: 1rem 1.5rem;
    border: 1px solid var(--dfq-red-l3);
    border-left: 6px solid var(--dfq-red-l3);
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 6rem;
}

.conference h4, .conference ul {
    position: relative;
    z-index: 1;
}

.conference i {
    position: absolute;
    color: var(--dfq-red-l5);
    font-size: 6rem;
    transform: rotate(-30deg);
    top: 2rem;
    right: 2rem;
}

.conference ul {
    padding-left: 2.5rem;
}

.conference ul li::marker {
    color: var(--dfq-red-l3);
}

.conference-presenter {
    color: var(--dfq-red);
    padding-top: 0.5rem;
}

.conference-animator {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    border-top: 6px solid var(--dfq-red-l3);
    border-bottom: 6px solid var(--dfq-red-l3);
    background-color: var(--dfq-red-l5);
}

.animator-img {
    display: inline-block;
    width: min(200px, 100%);
    overflow: hidden;
    aspect-ratio: 1;
    background-image: url("/hugues_drouin.png");
    background-size: 400px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 2px var(--dfq-red-l1);
}

.animator-name {
    vertical-align: middle;
    display: inline-block;
    text-align: left;
    font-size: 1.5rem;
    color: var(--dfq-red);
}

.animator-name div:nth-child(2) {
    font-weight: bold;
}

.peek-items {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.peek-item h3 {
    margin-bottom: 1rem;
}

.peek-item .video-container {
    height: 315px;
    display: inline-block;
    border: 6px solid var(--dfq-red-l3);
    overflow: hidden;
    box-sizing: content-box;
}

.video-container .video-iframe {
    width: 560px;
    height: 315px;
}

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

.audience-item {
    background: var(--dfq-red-l5);
    padding: 1.5rem;
    border-left: 4px solid var(--dfq-red-l3);
    transition: all 0.3s ease;
}

.map-container {
    background: var(--dfq-red-l5);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

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

.direction-card {
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--dfq-red-l3);
}

.notes-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid #f39c12;
}

.notes-section h3 {
    color: #d68910;
    margin-bottom: 1rem;
}

.notes-list {
    list-style: none;
}

.notes-list li {
    margin: 0.5rem 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.notes-list li::before {
    content: "-";
    position: absolute;
    left: 0;
}

.contact-section {
    background: var(--dfq-red);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.contact-section h2 {
    margin-bottom: 1rem;
}

.contact-section a {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

ul.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style-type: none;
    gap: 2rem;
}

li.sponsor {
    padding: 0;
    margin: 0;
}

li.sponsor img {
    max-width: 200px;
    max-height: 100px;
}

li.sponsor.rounded img {
    overflow: hidden;
}

/* Footer */
footer {
    background: var(--dec-grey);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer nav {
    margin-top: 1rem;
}

footer nav a {
    text-decoration: underline;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }

    .hero {
        background-position: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    nav {
        width: 100%;
    }

    .nav-links {
        display: flex;
        justify-content: space-between;
    }

    .nav-links li:first-child {
        display: none;
    }

    .nav-links li:last-child a:not(.locale-switcher) {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .video-container .video-iframe {
        width: 336px;
        height: 189px;
    }

    .peek-item .video-container {
        height: 189px;
    }

    .program-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dfq-red-l1);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.video-link:hover {
    color: var(--dfq-red);
    transform: translateX(5px);
}
