/* Global Reset */
@font-face {
    font-family: 'Fifties';
    src: url('./fifties-font/VVDS-Fifties-Cond-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Fifties';
    src: url('./fifties-font/VVDS-Fifties-Cond-Bold-Italic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    font-family: "Inter", serif;
    scroll-behavior: smooth;
    color: var(--black);
    animation: fadeIn 0.25s ease-in-out forwards;
}

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

/* Variables */
:root {
    --black: #05080e;
    --white: #eff0ef;
    --blur: #ebebebf0;
    --accone: #ff8787;
    --acctwo: #ff87878a;
}

.dark-mode {
    --black: #cec9c9;
    --white: #151618;
    --blur: #22262cf0;
    --accone: #aa001f;
    --acctwo: #8d021c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Body */
body {
    min-width: 300px;
    max-width: 1800px;
    margin: 0 auto;
    color: var(--black);
    background-color: var(--white);
    transition: background-color 0.25s ease, color 0.25s ease;
    animation: fadeIn 1s ease-in-out forwards;
}

body.modal-open {
    overflow: hidden;
}

button{
    background: none;
    border: none;
    cursor: pointer;
}

/* Content */
.content {
    width: 100%;
    max-width: 1078px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

/* Text settings */
h1 {
    font-family: 'Fifties', serif;
    font-size: 66px;
    font-weight: bold;
    text-align: center;
}

p{
	font-family: "Inter", serif;
}

.logo {
    font-size: 31px;
}

.material-icons {
    color: var(--black);
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: 57px;
    z-index: 9997;
    background-color: var(--blur);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: double 3px;
}

.nav_content {
    width: 90%;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav_right {
    height: 100%;
    border-right: double 3px;
}

.nav_right button{
    height: 100%;
    width: 100%;
    white-space: nowrap;
}

.nav_right .theme{
    height: 100%;
    width: 100%;
    white-space: nowrap;
}

.nav_right ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav_right ul li {
    padding: 0 15px;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: double 3px;
}

#nav_cta{
    background-color: var(--black);
    color: var(--white) !important;
}

#nav_cta a{
    color: var(--white) !important;
}

#nav_cta:hover{
    background-color: var(--acctwo);
    color: var(--black);
    transition: background-color 0.25s, color 0.25s;
}

#nav_cta:hover a{
    color: var(--black) !important;
}

.nav_right ul li a{
    text-wrap: nowrap;
}

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

.nav_right ul li:hover, .header_cta:hover, .footer_cta:hover{
    background-color: var(--acctwo);
    transition: background-color 0.25s;
}

.theme, .cta {
    background: none;
    border: none;
    cursor: pointer;
    height: 100%;
}

.cta {
    background-color: var(--black);
    color: var(--white);
    white-space: nowrap;
    font-weight: 500;
}

/* Header */
@keyframes fadeToTransparent {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: var(--accone);
    }
    100% {
        background-color: transparent;
    }
}

.seconde_nav{
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeToTransparent 3s;
    background-color: var(--blur);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: double 3px;
}

.seconde_nav p{
    text-align: center;
    width: 60%;
    font-size: 16px;
    line-height: 1.4;
}

.seconde_nav .see-more {
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.25s ease;
}

.seconde_nav .see-more:hover {
    color: var(--acctwo);
}

.seconde_nav .material-icons {
    font-size: 18px;
    vertical-align: middle;
}

header {
    border-bottom: double 3px;
}

header .content {
    align-items: center;
    text-align: center;
    padding: 6% 0;
}

header ul li {
    padding: 5px 0;
    text-align: center;
}



header .cta{
    padding: 14px 18px;
    border: double 3px;
    display: inline-block;
    margin-top: 22px;
}

header .cta:hover{
    background-color: var(--accone);
    color: var(--black);
    transition: background-color 0.25s, color 0.25s;
}

/* Text sizes */
#smalltext {
    font-size: 23px;
    padding-right: 0;
    text-align: center;
}

.placeholder_cta{
    background-color: var(--white);
    font-size: 18px;
    border: dashed 1px var(--black);
    padding: 8px 16px;
    margin-top: 10px;
}

.header_cta{
    margin-top: 15px;
}

.header_cta{
    background-color: var(--accone);
    border: dashed 1px;
    padding: 8px 16px;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    font-size: larger;
}

/* Main content */
main {
    border: none;
    border-bottom: double 3px;
}

main .content {
    padding: 0;
    border-left: double 3px;
    border-right: double 3px;
}

main .content video {
    width: 100%;
}

.explanation, .info_section{
    border-bottom: double 3px;
}

.explanation .content, .info_section .content {
    flex-direction: row;
    padding: 0;
}

.explanation .content p {
    width: 100%;
}

.explanation a{
    text-decoration: underline;
}

.main_space_container {
    width: 30%;
    padding: 5%;
}

.main_text_container {
    width: 70%;
    padding: 5%;
    border-left: double 3px;
    border-right: double 3px;
}

/*TIMER*/
.timer:before {
	content: "Starting in : ";
	display: block;
    font-weight: 300;
    font-size: 18px;
    display: contents;
}

/*LOGO COLLAB*/
.collab_logo{
    border-bottom: double 3px;
}

.collab_logo .content{
    align-items: center;
    padding: 2%;
}

.collab_logo .content ul{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.collab_logo .content ul li{
    width: 12%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    flex-wrap: wrap;
}

.collab_logo .content ul li img{
    width: 100%;
    filter: contrast(0%);
}

/*article overview*/

article{
    border-bottom: double 3px;
}

article .content{
    height: 100%;
    border-left: double 3px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}

.modal-button span{
    color: rgb(0, 97, 194);
    font-weight: 500;
}

/*videos */
/* .video_container{
    border-bottom: double 3px;
}

.video_container .content{
    padding: 0;
}

.video_container iframe{
    width: 100%;
    height: 560px;
    border-left: double 3px;
    border-right: double 3px;
} */

/*Faq*/

.faq_section{
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: double 3px;
}

.faq_section .content{
    display: flex;
}

.faq_content_container{
    padding-top: 5%;
    padding-bottom: 5%;
    width: 100%;
    border-left: double 3px;
    border-right: double 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.faq_section .content h2{
    padding-bottom: 5%;
    margin-bottom: 0;
}

.faq_section .content h2 + .accordion.active {
    border-bottom: none;
}

.accordion {
    background-color: transparent;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 21px;
    transition: 0.4s;
    border-top: double 3px;
    border-bottom: double 3px;
    font-weight: 500;
    margin-top: 0;
}

.accordion:hover{
    background-color: var(--acctwo);
}

.accordion:after {
    content: '\002B';
    font-weight: normal;
    float: right;
    margin-left: 5px;
    font-size: 24px;
}

.active:after {
    content: "\2212";
}

.accordion.active {
    border-bottom: none;
}

.panel {
    max-height: 0;
    padding: 0 18px;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    width: 100%;
}

.panel p{
    padding-bottom: 2.5%;
    opacity: 0.9;
    text-align: left;
}

footer{
    border-top: double 3px;
}

footer .content{
    align-items: center;
    justify-content: center;
    padding: 5%;
}

.footer_cta{
    background-color: var(--accone);
    padding: 20px 12px;
    border: double 3px;
}

body.modal-open {
    overflow: hidden;
}

/* Le Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--blur);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Contenu du Modal */
.modal-content {
    position: relative;
    color: whitesmoke;
    margin: 2% auto;
    padding: 0;
    border: double 3px;
    width: 98%;
    max-width: none;
    min-height: 2500px;
    border: none;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    background-image: url('https://www.apple.com/v/airpods-max/i/images/overview/product-stories/hifi-sound/audio_airpod_max__filcqiddcmye_medium.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.modal-content.scrolled {
    transform: translateY(0);
}

.modal-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10000;
    display: flex;
    justify-content: flex-end;
}

.modal-body {
    text-align: center;
    padding: 100px 20px;
    width: 90%;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: whitesmoke;
    min-height: calc(100vh - 100px);
}

.modal-top {
    max-width: 800px;
    margin-bottom: 60px;
}

.modal-bottom {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    justify-content: space-between;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.feature-icon span {
    font-size: 28px;
    font-weight: 600;
    color: whitesmoke;
}

.feature-text {
    flex: 1;
    text-align: center;
    max-width: 250px;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-text.active {
    opacity: 1;
}

.feature-text p {
    font-size: 16px;
    line-height: 1.4;
    color: whitesmoke;
    margin: 0;
}

.feature-text .highlight {
    color: whitesmoke;
    font-weight: 500;
}

.modal-top h2 {
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: whitesmoke;
}

.modal-top p {
    margin-bottom: 30px;
    font-size: 24px;
    line-height: 1.4;
    color: whitesmoke;
}

.modal-cta {
    margin-top: 20px;
}

.modal-cta .cta {
    padding: 12px 24px;
    font-size: 18px;
    border: double 3px;
    display: inline-block;
}

/* Bouton de fermeture */
.closeModalBtn {
    font-size: 21px;
    font-weight: bold;
    cursor: pointer;
    width: 44px;
    height: 44px;
    margin: 20px 12px 0px 0px;
    border-radius: 50%;
    border: double 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.closeModalBtn:hover,
.closeModalBtn:focus {
    color: var(--acctwo);
    border-color: var(--acctwo);
    transform: scale(1.1);
}

.thank .content{
    padding: 10px 0;
    align-items: end;
}

/* Media Queries */
@media only screen and (max-width: 768px) {
    h1 {
        font-size: 53px;
    }

    #smalltext {
        padding-right: unset;
    }
    
    .content {
        width: 87.5%;
        padding: 20% 0;
    }

    .logo {
        font-size: 21px;
    }

    .nav_content {
        width: 100%;
        padding-left: 4%;
    }

    .seconde_nav {
        height: auto;
        min-height: 52px;
        padding: 10px 0;
    }
    
    .seconde_nav p{
        height: unset;
        width: 90%;
        padding: 5px 0;
        font-size: 14px;
        line-height: 1.3;
    }
    
    .seconde_nav .see-more {
        display: block;
        margin-top: 5px;
        text-align: center;
    }

    .nav_right {
        border-right: none;
    }

    header .content {
        align-items: center;
        text-align: center;
	padding: 15% 0;
    }

    #berkelylogo{
	display: none;
	visibility: hidden;
    }

    
    header ul{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    article .content{
        padding: 0;
        flex-direction: column;
        border: none;
    }
    
    .collab_logo .content ul{
        justify-content: space-around;
    }
    
    .collab_logo{
        padding: 15% 0;
	text-align:center;
    }

    .main_space_container {
        width: 0;
        padding: 0;
    }
    
    .main_text_container {
        width: 100%;
        border-left: none;
        border-right: none;
    }

    .faq_section .content{
        padding: 0;
    }

    .faq_section h2{
        padding: 0 18px;
    }

    #last_acc{
	border-bottom: double 3px var(--black);
    }

    .footer_cta{
        background-color: var(--accone);
        padding: 8px 12px;
        border: double 3px;
    }

    .explanation{
        padding: 15% 0;
    }
}

/* Additional responsive styles for very small screens */
@media only screen and (max-width: 480px) {
    .seconde_nav {
        padding: 8px 0;
    }
    
    .seconde_nav p {
        width: 95%;
        font-size: 13px;
        line-height: 1.2;
    }
    
    .seconde_nav .branch-count {
        font-size: 16px;
    }
    
    .seconde_nav .material-icons {
        font-size: 16px;
    }


    /* .video_container .content {
        width: 100%;
        padding: 0;
    }

    .video_container iframe {
        height: 300px;
        border-left: none;
        border-right: none;
        width: 100%;
    } */

    .explanation_cta {
        margin-top: 20px;
        padding: 0;
    }

    .explanation_cta a {
        font-size: 16px;
    }

    .modal-body {
        padding: 20px;
        min-height: calc(100vh - 80px);
    }

    .modal-top {
        margin-bottom: 40px;
    }

    .modal-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .feature-text {
        gap: 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon span {
        font-size: 20px;
    }

    .modal-top h2 {
        font-size: 32px;
    }

    .modal-top p {
        font-size: 18px;
    }

    .feature-text p {
        font-size: 14px;
    }

    .modal-cta .cta {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        width: 100%;
        margin: 0;
    }

    .modal-header {
        padding: 15px;
    }

    .closeModalBtn {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .tab-button {
        width: 100%;
        max-width: 300px;
    }

    .tab-pane p {
        font-size: 18px;
        padding: 0 20px;
    }

    .features-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

.sponsor{
    padding: 5% 0;
    border-top: double 3px;
}@media only screen and (min-width: 768px) and (max-width: 1069px) {
    .content {
        width: 692px;
        padding: 10% 0;
    }

    h1 {
        font-size: 62px;
    }

    #smalltext {
        padding-right: unset;
    }

    .logo {
        font-size: 24px;
    }

    .faq_section .content{
        padding: 0;
    }
    
    article .content{
        padding: 0;
    }

    /* .video_container iframe {
        height: 400px;
    } */
}

.explanation_cta {
    margin-top: 30px;
    text-align: left;
}

.explanation_cta a {
    text-decoration: underline;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.explanation_cta a:hover {
    gap: 12px;
}

.explanation_cta .arrow {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.explanation_cta a:hover .arrow {
    transform: translateX(4px);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid whitesmoke;
    color: whitesmoke;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background: whitesmoke;
    color: #000;
}

.tab-content {
    width: 100%;
    margin-bottom: 60px;
}

.tab-pane {
    display: none;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tab-pane.active {
    display: block;
}

.tab-pane p {
    font-size: 24px;
    line-height: 1.4;
    color: whitesmoke;
}

.toggle-section {
    width: 100%;
    margin-bottom: 60px;
}

.toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.toggle-button {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid whitesmoke;
    color: whitesmoke;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    min-width: 150px;
}

.toggle-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-button.active {
    background: whitesmoke;
    color: #000;
}

.toggle-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.toggle-pane {
    display: none;
    width: 100%;
}

.toggle-pane.active {
    display: block;
}

.toggle-pane p {
    font-size: 24px;
    line-height: 1.4;
    color: whitesmoke;
}

.features-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

@media only screen and (max-width: 768px) {
    .toggle-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .toggle-button {
        width: 100%;
        max-width: 300px;
    }

    .toggle-pane p {
        font-size: 18px;
        padding: 0 20px;
    }

    .features-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

.tab-description {
    font-size: 20px;
    line-height: 1.5;
    color: whitesmoke;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@media only screen and (max-width: 768px) {
    .tab-description {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 20px;
    }
}
