@media (min-width: 769px) {
    body, html {
        margin: 0;
        padding: 0;
        height: 100%;
        font-family: "Josefin Sans", sans-serif;
        background-color: #1a222a;
    }

    h1{
        color: white;
        font-size: 5vw;
        font-family: "Grand Hotel", cursive;
        text-align: center;
    }

    .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Centre les éléments horizontalement */
        gap: 20px; /* Espacement entre les éléments */
        padding: 20px;
    }
    
    .pdf-container {
        text-align: center;
        width: 35vw; /* Ajuste la largeur */
        height: 70vh; /* Ajuste la hauteur */
        display: flex;
        flex-direction: column;
        align-items: center; /* Centre horizontalement */
        justify-content: center; /* Centre verticalement */
        padding: 15px;
        border-radius: 10px;
    }

    iframe{
        width: 100%;
        height: 100%;       
        border: 1px solid #ddd;
    }

    p{
        color: white;
        font-size: 1.5vw;
    }

    .ouvrir {
        width: 10em;
        position: relative;
        height: 3.5em;
        border: 3px ridge #149CEA;
        outline: none;
        background-color: transparent;
        color: white;
        transition: 1s;
        border-radius: 0.3em;
        font-size: 1vw;
        font-weight: bold;
        cursor: pointer;
        margin-top: 5%;
    }
  
    .ouvrir::after {
        content: "";
        position: absolute;
        top: -10px;
        left: 3%;
        width: 95%;
        height: 40%;
        background-color: #1a222a;
        transition: 0.5s;
        transform-origin: center;
    }
  
    .ouvrir::before {
        content: "";
        transform-origin: center;
        position: absolute;
        top: 80%;
        left: 3%;
        width: 95%;
        height: 40%;
        background-color: #1a222a;
        transition: 0.5s;
    }
    
    .ouvrir:hover::before, .ouvrir:hover::after {
        transform: scale(0)
    }
    
    .ouvrir:hover {
        box-shadow: inset 0px 0px 25px #1479EA;
    }

    
    .retour {
        cursor: pointer;
        position: fixed;
        top: 1%;
        left: 1%;
        padding: 10px 24px;
        font-size: 1vw;
        color: #149CEA;
        border: 2px solid#149CEA;
        border-radius: 34px;
        background-color: transparent;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
        overflow: hidden;
    }
    
    .retour::before {
        content: '';
        position: absolute;
        inset: 0;
        margin: auto;
        width: 50px;
        height: 50px;
        border-radius: inherit;
        scale: 0;
        z-index: -1;
        background-color: #149CEA;
        transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    }
    
    .retour:hover::before {
        scale: 3;
    }
    
    .retour:hover {
        color: #212121;
        scale: 1.1;
        box-shadow: 0 0px 20px rgba(193, 163, 98,0.4);
    }
    
    .retour:active {
        scale: 1;
    }

}

@media (max-width: 768px) {
    body, html {
        margin: 0;
        padding: 0;
        font-family: "Josefin Sans", sans-serif;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #1a222a;
    }

    h1{
        color: white;
        font-size: 9vw;
        font-family: "Grand Hotel", cursive;
        text-align: center;
    }

    .container{
        display: flex;
        flex-direction: column;
    }

    .pdf-container{
        text-align: center;
        width: 95%;
        margin: 5% auto;
    }

    iframe{
        width: 100%;
        height: 50vh;       
        border: 1px solid #ddd;
    }

    p{
        color: white;
        font-size: 4vw;
    }

    .ouvrir {
        width: 10em;
        position: relative;
        height: 3.5em;
        border: 3px ridge #149CEA;
        outline: none;
        background-color: transparent;
        color: white;
        transition: 1s;
        border-radius: 0.3em;
        font-size: 3vw;
        font-weight: bold;
        cursor: pointer;
        margin-top: 5%;
        box-shadow: inset 0px 0px 25px #1479EA;
    }
  
    .ouvrir::after {
        content: "";
        position: absolute;
        top: -10px;
        left: 3%;
        width: 95%;
        height: 40%;
        background-color: #1a222a;
        transition: 0.5s;
        transform-origin: center;
    }
  
    .ouvrir::before {
        content: "";
        transform-origin: center;
        position: absolute;
        top: 80%;
        left: 3%;
        width: 95%;
        height: 40%;
        background-color: #1a222a;
        transition: 0.5s;
    }
    
    .ouvrir::before, .ouvrir::after {
        transform: scale(0)
    }
    
    .ouvrir:hover {
        box-shadow: inset 0px 0px 25px #1479EA;
    }

    
    .retour {
        cursor: pointer;
        position: fixed;
        top: 1%;
        left: 1%;
        padding: 10px 24px;
        font-size: 4vw;
        color: #149CEA;
        border: 2px solid#149CEA;
        border-radius: 34px;
        background-color: transparent;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
        overflow: hidden;
    }
    
    .retour::before {
        content: '';
        position: absolute;
        inset: 0;
        margin: auto;
        width: 50px;
        height: 50px;
        border-radius: inherit;
        scale: 0;
        z-index: -1;
        background-color: #149CEA;
        transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    }
    
    .retour:hover::before {
        scale: 3;
    }
    
    .retour:hover {
        color: #212121;
        scale: 1.1;
        box-shadow: 0 0px 20px rgba(193, 163, 98,0.4);
    }
    
    .retour:active {
        scale: 1;
    }
  
}