/* VARIABLES GLOBALES */
:root {
    --galbani-red: #d32027;
    --galbani-blue: #263c5a;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f8f9fa;
}

/* RESET & BASICS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.container, .image-divider {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 25px;
    padding-right: 25px;
    width: 100%;
}

.uppercase {
    text-transform: uppercase;
}

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

/* TYPOGRAPHY */
.title-blue {
    color: var(--galbani-blue);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.title-blue.no-margin {
    margin-bottom: 0;
}

.title-red {
    color: var(--galbani-red);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
}

.subtitle-ready {
    font-weight: bold;
    color: var(--galbani-blue);
    font-size: 14px;
    margin-bottom: 40px;
}

.desc-text {
    max-width: 1000px;
    margin: 0 auto 30px;
    font-size: 14px;
}

/* BOUTONS */
.btn-red {
    background: var(--galbani-red);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn-red:hover {
    background: #b01a20;
}

.btn-submit-form {
    width: 100%;
    margin-top: 10px;
    font-style: italic;
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

/* HEADER */
.main-header {
    position: relative;
    z-index: 100;
    padding: 0 1rem;
}

.main-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.main-header .logo img {
    max-height: 50px;
}

.main-header a {
    text-decoration: none;
    color: #002347;
}

/* Desktop Navigation (Default) */
.main-nav.desktop-nav {
    display: block;
}

.main-nav.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav.desktop-nav ul li a {
    font-weight: bold;
}

/* Burger Icon (Default - hidden) */
.burger-icon {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 200;
}

.burger-icon span {
    display: block;
    height: 3px;
    background-color: var(--galbani-blue);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Menu Overlay (Mobile Menu) */
.menu-overlay {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 150;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 60px 25px;
    justify-content: center;
    align-items: center;
}

.menu-overlay.active {
    transform: translateX(0);
}

.menu-overlay .close-icon {
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 40px;
    cursor: pointer;
    color: var(--galbani-blue);
}

.menu-overlay .main-nav {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.menu-overlay .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-overlay .main-nav ul li a {
    font-size: 24px;
    color: var(--galbani-blue);
}

/* Custom Select Wrapper */
.custom-select-wrapper {
    position: relative;
    width: 60px; /* Adjust width as needed */
}

.custom-select-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
    position: relative;
}

.custom-select-trigger::after {
    content: '▼';
    font-size: 10px;
    color: var(--text-dark);
    margin-left: 5px;
}

.custom-select-trigger svg {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}

.custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 101;
    margin-top: 5px;
    padding: 5px;
}

.custom-select-wrapper.open .custom-select-options {
    display: block;
}

.custom-select-option {
    padding: 5px;
    cursor: pointer;
}

.custom-select-option:hover {
    background-color: #f0f0f0;
}

.custom-select-option a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.custom-select-option svg {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}

/* Desktop Language Picker */
.desktop-lang-picker {
    z-index: 100;
}

/* Mobile Language Picker */
.mobile-lang-picker {
    display: none;
    margin-top: 20px;
    justify-content: center;
}

.mobile-lang-picker .custom-select-trigger {
    background: none;
    box-shadow: none;
}

.mobile-lang-picker svg {
    width: 30px;
    height: 30px;
}

/* SECTION HERO */
.hero {
    position: relative;
    height: 60vh;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 60px;
    color: white;
}

.hero img.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 10%;
}

.hero-location {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hero-title {
    font-size: 45px;
    font-weight: 900;
    line-height: 1.1;
}

/* COUNTDOWN */
.countdown {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: -35px;
    position: relative;
    z-index: 10;
    padding: 0 10px;
}

.cd-box {
    background: var(--galbani-red);
    color: white;
    width: 65px;
    height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
}

.cd-num {
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.cd-label {
    font-size: 11px;
}

/* SECTIONS GENERAL */
.section-pad {
    padding-top: 60px;
    padding-bottom: 60px;
}

.divider {
    border-bottom: 1px solid #e0e0e0;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* IMAGE DOUGH DIVIDER */
.image-divider {
    width: 100%;
}

.image-divider img {
    width: 100%;
}

/* HEADER CLASSEMENT */
.classement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card {
    border: 2px solid var(--galbani-blue);
    padding: 35px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.card .btn-red {
    margin-top: auto;
}

.card-img-bottom {
    height: 30px;
    margin-top: 10px;
}

/* PROGRAMME */
.prog-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.prog-row {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.prog-row:last-child {
    border-bottom: none;
}

.prog-name {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: var(--text-dark);
}

.prog-time {
    color: var(--galbani-red);
    font-size: 14px;
    font-weight: bold;
}

.prog-subtitle {
    font-size: 14px;
    color: var(--text-gray);
}

/* FORMULAIRE */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-text p {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.form-deadline {
    color: var(--galbani-red);
    font-weight: bold;
    margin-top: 20px;
}

.form-box {
    background: white;
    padding: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 14px;
}

.form-checkbox-group {
    display: flex;
    gap: 15px;
    font-size: 13px;
    flex-wrap: wrap;
}

.form-checkbox-group-vertical {
    display: flex;
    gap: 10px;
}

.form-checkbox-group-vertical > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-checkbox-group-vertical > div label {
    display: inline !important; /* Override the general .form-group label style */
    margin-bottom: 0 !important; /* Reset margin */
    font-weight: normal !important; /* Optional: reset font weight for choice labels */
}

.form-checkbox-group-vertical > div input[type="checkbox"]:disabled + label {
    color: #aaa;
    cursor: not-allowed;
}

.form-submit-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* SPONSORS */
.sponsor-section {
    text-align: center;
}

.sponsor-group {
    margin-bottom: 50px;
}

.sponsor-group.no-margin {
    margin-bottom: 0;
}

.sponsor-subtitle {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 1px;
}

.sponsor-level-1 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 60px;
    gap: 40px;
}

.sponsor-level-1 img {
    height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
    margin-top: 15px;
}

.sponsor-grid.main-sponsors img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.sponsor-grid.tech-sponsors img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* FOOTER & MAP */
.footer-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--galbani-blue);
    color: white;
}

.footer-content {
    padding: 60px 10%;
}

.footer-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-block h4 {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #fff;
}

.contact-block p {
    font-size: 13px;
    color: #d0d5db;
    line-height: 1.4;
    margin-bottom: 20px;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-bottom-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem 5%;
    font-size: 1rem;
    background-color: #ffffff;
    font-family: sans-serif;
}

.footer-bottom-custom a {
    text-decoration: none;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: #002347;
    font-weight: 500;
}

.footer-privacy {
    color: #d11241;
}

.footer-center {
    text-align: center;
}

.footer-center img {
    max-height: 80px;
    width: auto;
}

.footer-right {
    color: #002347;
}

.footer-right a {
    color: #d11241;
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
    .footer-bottom-custom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .footer-left {
        margin-right: 0;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .cards-grid, .prog-layout, .form-layout, .footer-split, .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        padding: 0 25px;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-pad {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .footer-content {
        padding: 50px 25px;
    }

    .form-box {
        padding: 25px 15px;
    }

    .classement-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    /* Mobile Header Styles */
    .main-nav.desktop-nav,
    .desktop-lang-picker {
        display: none;
    }

    .burger-icon {
        display: flex;
    }

    .menu-overlay .mobile-lang-picker {
        display: flex;
    }
}

/* FLASH MESSAGES */
.flash-success, .flash-error {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: white;
    text-align: center;
}

.flash-success {
    background-color: #28a745;
    border-color: #28a745;
}

.flash-error {
    background-color: var(--galbani-red);
    border-color: var(--galbani-red);
}

/* FORM ERRORS */
.form-error-message {
    background-color: var(--galbani-red);
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 14px;
}
