@font-face { font-family: pricedown; src: url('/pricedown bl.ttf'); } 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    height: 100vh;
    background: url('/assets/img/wp3.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}
.left-panel {
    width: 20%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.iframe-container {
    flex-grow: 1;
}
.iframe-container iframe {
    width: 100%;
    height: 99%;
    border: none;
}
.extra-content {
    color: white;
    padding: 10px;
    text-align: center;
    height: 35%;
}
.extra-content.visible {
    display: block;
}
.right-container {
    width: 80%;
    height: 100%;
    display: flex;
    position: relative;
}
.middle-panel {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    color: #fff;
    font-size: 20px;
    font-family: Arial, sans-serif;
    /* Permet à la colonne de scroller si le contenu dépasse */
    overflow-y: auto;
}
.middle-panel .top-content, .middle-panel .bottom-content {
    padding: 10px;
    text-align: center;
    width: 100%;
    /* On retire le flex égal, chaque bloc prend la place de son contenu */
    box-sizing: border-box;
}
.right-panel {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-size: 20px;
    font-family: Arial, sans-serif;
    color: #fff;
    overflow-y: auto;
}
.right-panel .top-content, .right-panel .bottom-content {
    padding: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

h1 {
    width: 100%;
    background-color: #f1f1f1;
    color:rgb(58, 12, 163);
    padding: 10px;
    text-align: center;
    font-family: 'pricedown', sans-serif;
    display: block;
    border-bottom: 2px solid rgb(58, 12, 163);;
    text-transform: uppercase;        
}
.extra-content h1{
    margin-bottom: 20px;
}
.extra-content p{
    margin-bottom: 20px;
    color:rgb(255, 255, 255);
    font-family: Arial, sans-serif;
}   
.text-wod {
    background-color: rgba(0, 0, 0, 0.75);
    padding-top: 20px;
    padding-bottom: 20px;
}

h2 {
    width: 100%;
    background-color: #747476;
    color: #0a090e;
    padding: 1px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size:26px;
    display: block;
    text-transform: uppercase;
}
p {
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}
.logo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 200px;
}

/* Panel frames (les 4 cadres) */
.panel-frame {
    position: relative;
    will-change: transform, opacity;
    transition: transform 300ms ease, box-shadow 300ms ease, opacity 300ms ease;
}

.expand-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 30;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
    opacity: 0.95;
}
.expand-btn:hover {
    transform: scale(1.06);
    background: rgba(0,0,0,0.6);
}
.expand-btn:focus { outline: 2px solid rgba(255,255,255,0.18); }

/* Etat agrandi : overlay au-dessus des autres contenus dans la "right-container" */
.panel-frame.expanded {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    background: rgba(0,0,0,0.65);
    z-index: 40;
    overflow: auto;
    display: block;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    animation: expandIn 260ms cubic-bezier(.2,.9,.2,1);
}

@keyframes expandIn {
    from { transform: scale(0.98); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* Texte plus grand quand agrandi */
.panel-frame.expanded, .panel-frame.expanded .text-wod, .panel-frame.expanded h1, .panel-frame.expanded h2, .panel-frame.expanded p {
    /* Reduced max size to ~half (was 120px) so text isn't excessively large when expanded */
    font-size: clamp(20px, 3.5vw, 40px);
    transition: font-size 220ms ease;
}

/* Diminue l'opacité des autres cadres quand un est agrandi */
.right-container.has-expanded .panel-frame:not(.expanded) {
    opacity: 0.25;
    pointer-events: none;
    transform: scale(0.98);
}

/* style du bouton quand agrandi */
.panel-frame.expanded .expand-btn {
    background: rgba(255,255,255,0.95);
    font-size: 22px;
}