/* style.css */

@font-face {
    font-family: "Google Sans";
    src: url("assets/fonts/GoogleSans-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
}

@font-face {
    font-family: "Google Sans";
    src: url("assets/fonts/GoogleSans-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600 900;
    font-display: swap;
}

body {
    font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #F7FAFC;
    color: #2D3748;
    overflow-x: hidden;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #FFFFFF;
    background-color: #1E3A8A;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #FBBF24;
    outline-offset: 3px;
}

button,
select {
    touch-action: manipulation;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
canvas,
iframe {
    max-width: 100%;
}

img,
svg {
    height: auto;
}

main section,
main section > div,
.tier-card,
.advantage-card {
    min-width: 0;
}

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-image: url("assets/images/demo-day-2025-hero.jpg");
    background-position: center 66%;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 20, 43, 0.86), rgba(8, 26, 58, 0.68));
}

.hero-content h1 {
    color: #FFFFFF;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-event-title {
    display: block;
    color: #93C5FD;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
}

.hero-eyebrow {
    display: block;
    margin-bottom: 0.55rem;
    color: #FFFFFF;
    font-size: 1.875rem;
    font-weight: 400;
    line-height: 1.2;
}

.hero-content > p {
    color: #F1F5F9;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-content .event-meta-separator {
    color: #FFFFFF;
}

.hero-content > a {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero-cta {
    display: inline-block;
    border-radius: 9999px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

p,
li,
a,
h1,
h2,
h3,
h4 {
    overflow-wrap: anywhere;
}

/* Base style for navigation links */
.nav-link {
    position: relative;
    /* Needed for ::after pseudo-element positioning */
    transition: all 0.3s ease-in-out;
    /* Smooth transitions for all properties */
    padding: 0.5rem 0.75rem;
    /* Add some padding for the bubble effect */
    white-space: nowrap;
    /* Prevent text wrapping */
    text-decoration: none;
    /* Remove default underline */
    color: #2D3748;
    /* Default text color */
    display: inline-flex;
    /* To properly center ::after if needed, or just for consistent spacing */
    align-items: center;
    /* For vertical centering of text within link */
}

/* Hover state for navigation links */
.nav-link:hover {
    color: #4299E1;
    /* Blue text on hover */
}

/* Style for the explicitly active/selected navigation link (the "bubble below" effect) */
.nav-link.active-bubble {
    color: #4299E1;
    /* Active text color is blue */
    font-weight: 600;
    /* Make it slightly bolder when active */
}

.nav-link.active-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    /* Position below the text */
    left: 50%;
    /* Start from center */
    transform: translateX(-50%);
    /* Center horizontally */
    width: 25px;
    /* Width of the bubble */
    height: 6px;
    /* Height of the bubble */
    background-color: #4299E1;
    /* Blue color */
    border-radius: 9999px;
    /* Rounded shape */
    opacity: 1;
    /* Fully visible */
    transition: all 0.3s ease-in-out;
}

/* Hide the bubble when not active or on hover if not active */
.nav-link:not(.active-bubble)::after {
    content: '';
    /* Still need content to make transition work */
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    /* Hidden width */
    height: 6px;
    background-color: #4299E1;
    border-radius: 9999px;
    opacity: 0;
    /* Fully transparent */
    transition: all 0.3s ease-in-out;
}

/* On hover, if not active, show a subtle version of the bubble below */
.nav-link:not(.active-bubble):hover::after {
    width: 15px;
    /* Smaller width on hover */
    opacity: 0.7;
    /* Slightly transparent */
}

/* Ensure the "Devenir Sponsor" button doesn't get the nav-link styles for active/hover bubble */
.nav-link.bg-blue-500 {
    padding: 0.5rem 1rem;
    /* Adjust padding for button */
    border-radius: 9999px;
    /* Ensure it's rounded */
    color: white;
    /* Text color for button */
    background-color: #3B82F6;
    /* Blue background for button */
    border-bottom: none;
    /* No underline for button */
}

.nav-link.bg-blue-500:hover {
    background-color: #2563EB;
    /* Darker blue on hover for button */
    color: white;
}

.tier-card {
    transition: all 0.3s ease-in-out;
    border: 2px solid #E2E8F0;
    cursor: default;
    width: 100%;
    /* Ensure the cursor indicates it's clickable */
}

.tier-card:hover {
    border-color: #4299E1;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* The .selected class is now primarily for hover effect, and will be removed on mouseleave */
.tier-card.selected {
    border-color: #4299E1;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.advantage-card {
    transition: all 0.3s ease-in-out;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.google-form-container {
    position: relative;
    width: 100%;
    /* Take full width of its parent */
    height: 350px;
    max-height: 150vh;
    overflow: hidden;
}

.google-form-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Styling for markdown generated content */
#ideasContent h1,
#ideasContent h2,
#ideasContent h3,
#ideasContent h4,
#ideasContent h5,
#ideasContent h6 {
    font-weight: 600;
    /* semi-bold */
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #2D3748;
}

#ideasContent h3 {
    font-size: 1.5rem;
}

/* text-2xl */
#ideasContent h4 {
    font-size: 1.25rem;
}

/* text-xl */

#ideasContent p {
    margin-bottom: 1em;
    line-height: 1.6;
}

#ideasContent ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

#ideasContent ol {
    list-style: decimal;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

#ideasContent li {
    margin-bottom: 0.5em;
}

#ideasContent strong {
    font-weight: 700;
    /* bold */
}

#ideasContent em {
    font-style: italic;
}

/* Custom max-width for the main container on larger screens for comfortable padding */
.container {
    width: 100%;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

.silver-tier-btn {
    background-color: #4B5563;
}

.silver-tier-btn:hover {
    background-color: #374151;
}

.nature-tier-title {
    color: #7C3AED;
}

.nature-tier-btn {
    background-color: #7C3AED;
}

.nature-tier-btn:hover {
    background-color: #6D28D9;
}

.package-kicker {
    letter-spacing: 0.08em;
}

@media (min-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .packages-grid .tier-card {
        grid-column: span 2;
    }

    .packages-grid .tier-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .packages-grid .tier-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

.package-back-btn {
    padding: 0.7rem 1rem;
    border: 1px solid #BFDBFE;
    border-radius: 9999px;
    background-color: #EFF6FF;
    font-weight: 700;
}

.package-back-btn:hover {
    background-color: #DBEAFE;
}

#selected-tier-content {
    border: 1px solid #E2E8F0;
    border-top: 5px solid #2563EB;
}

.section-visual {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #FFFFFF;
    box-shadow: 0 14px 30px -12px rgb(15 23 42 / 0.28);
}

.section-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.section-visual figcaption {
    padding: 0.85rem 1rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.45;
    text-align: center;
}

.contribution-chart-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    background-color: #FFFFFF;
    box-shadow: 0 14px 30px -12px rgb(15 23 42 / 0.18);
}

.contribution-chart {
    width: min(100%, 360px);
    aspect-ratio: 1;
    margin: 0 auto 1.5rem;
    border: 4px solid #FFFFFF;
    border-radius: 50%;
    background: conic-gradient(
        #4285F4 0 40%,
        #10B981 40% 65%,
        #F9AB00 65% 85%,
        #EA4335 85% 95%,
        #6366F1 95% 100%
    );
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.12);
}

.contribution-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contribution-legend li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: #475569;
    font-size: 0.9rem;
}

.contribution-legend strong {
    color: #1E293B;
    white-space: nowrap;
}

.legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
}

.legend-blue { background-color: #4285F4; }
.legend-green { background-color: #10B981; }
.legend-yellow { background-color: #F9AB00; }
.legend-red { background-color: #EA4335; }
.legend-indigo { background-color: #6366F1; }

.contribution-chart-card figcaption {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
    color: #64748B;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

.event-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.event-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
}

.event-meta-separator {
    color: #64748B;
}

/* Sobriété visuelle demandée pour l'édition 2026. */
.nav-link.active-bubble::after,
.nav-link:not(.active-bubble)::after,
.nav-link:not(.active-bubble):hover::after {
    bottom: 0;
    height: 2px;
    border-radius: 0;
}

.nav-link.active-bubble::after,
.nav-link:not(.active-bubble):hover::after {
    width: calc(100% - 1.5rem);
}

.tier-card {
    border: 1px solid #D8DEE8;
    background-color: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tier-card:hover,
.tier-card.selected {
    transform: none;
    box-shadow: 0 8px 20px -14px rgb(15 23 42 / 0.35);
}

.tier-card:hover {
    border-color: #94A3B8;
}

.tier-card.selected {
    border-color: #2563EB;
}

.tier-card h3 {
    color: #1E293B !important;
}

.tier-detail-btn,
.silver-tier-btn,
.nature-tier-btn {
    border-radius: 0.4rem !important;
    background-color: #2563EB !important;
    transition: background-color 0.2s ease;
}

.tier-detail-btn:hover,
.silver-tier-btn:hover,
.nature-tier-btn:hover {
    background-color: #1D4ED8 !important;
}

.nature-tier-title {
    color: #1E293B;
}

.advantage-card {
    border: 1px solid #E2E8F0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.advantage-card:hover {
    transform: none;
    border-color: #CBD5E1;
    box-shadow: 0 8px 20px -16px rgb(15 23 42 / 0.3);
}

.package-back-btn {
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #475569;
    background: transparent;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.package-back-btn:hover {
    color: #1E293B;
    background: transparent;
}

#selected-tier-content {
    border: 1px solid #E2E8F0;
    border-top-width: 1px;
    box-shadow: none;
}

.section-visual {
    border-radius: 0.75rem;
    box-shadow: 0 10px 24px -18px rgb(15 23 42 / 0.4);
}

.opportunity-card,
.partnership-ideas-card,
.sponsor-form-card {
    border: 1px solid #E2E8F0;
    box-shadow: none;
}

.audience-facts {
    margin-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

.audience-facts > div {
    padding: 1rem 0;
    border-bottom: 1px solid #E2E8F0;
}

.audience-facts dt {
    margin-bottom: 0.25rem;
    color: #1E293B;
    font-weight: 700;
}

.audience-facts dd {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.event-meta {
    gap: 0.5rem;
    color: #FFFFFF;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.event-meta-item {
    padding: 0;
    border-radius: 0;
    color: #FFFFFF !important;
    background: transparent !important;
}

.event-meta-separator {
    color: #FFFFFF;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: #CBD5E1;
    font-size: 1.6rem;
    transition: color 0.2s ease;
}

.footer-social-link:hover {
    color: #FFFFFF;
}

.footer-socials {
    max-width: 30rem;
    margin-right: auto;
    margin-left: auto;
    gap: 0.75rem 1rem;
}

.section-heading {
    margin-bottom: 2.5rem;
}

.footer-contact-lines {
    display: grid;
    gap: 0.3rem;
    margin-top: 1.25rem;
    color: #CBD5E1;
}

.footer-contact-lines a {
    color: #E2E8F0;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.footer-event-name {
    margin-top: 1.25rem;
}

.footer-signature {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #374151;
}

.footer-copyright {
    color: #94A3B8;
}

@media (min-width: 768px) {
    .hero-eyebrow {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    .hero-section {
        background-position: center 70%;
    }

    .hero-section::before {
        background: rgba(8, 20, 43, 0.74);
    }

    .hero-eyebrow {
        font-size: 1.875rem;
    }

    .hero-event-title {
        font-size: 2rem;
        line-height: 1.12;
    }

    .audience-subtitle {
        max-width: 20rem;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.6rem;
    }

    .event-meta-item {
        width: 100%;
        justify-content: center;
    }

    .section-heading {
        margin-bottom: 2rem;
    }

    .footer-socials {
        max-width: 18rem;
        gap: 0.6rem 0.8rem;
    }

    .event-meta-separator {
        display: none;
    }

    #header nav {
        padding-left: 0;
        padding-right: 0;
        gap: 0.5rem;
    }

    #header nav > div:first-child {
        min-width: 0;
        font-size: 0.95rem;
    }

    #header nav > div:first-child a {
        min-width: 0;
    }

    #header nav > div:first-child img {
        flex: 0 0 auto;
    }

    #mobile-menu-button {
        min-width: 44px;
        min-height: 44px;
    }

    #mobile-menu a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-visual {
        max-width: 100%;
        border-radius: 0.75rem;
    }

    .contribution-chart-card {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .contribution-chart {
        width: min(100%, 280px);
    }

    .contribution-legend {
        grid-template-columns: 1fr;
    }

    #selected-tier-content {
        padding: 1.25rem;
    }

    input,
    select,
    #generateIdeasBtn {
        min-height: 44px;
        font-size: 1rem;
    }

    .primary-form-cta {
        width: 100%;
        min-height: 48px;
        padding-left: 1rem;
        padding-right: 1rem;
        line-height: 1.35;
    }

    footer a {
        min-height: 44px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .tier-card:hover,
    .tier-card.selected,
    .advantage-card:hover {
        transform: none;
    }
}

@media (max-width: 380px) {
    #hero h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .event-meta-item {
        font-size: 0.95rem;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
