/* SECTION 1 : POLICE ET PARAMÈTRES GÉNÉRAUX */
@font-face {
    font-family: 'Days';
    src: url('../fonts/Days.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* SECTION 2 : EN-TÊTE (HEADER) ET NAVIGATION */
.menu {
    font-size: 30px;
    cursor: pointer;
    color: black;
    margin-right: 20px;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background-color: #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.lien2 a,
.lien1 a {
    font-family: Days, sans-serif;
    text-decoration: underline;
    color: black;
    font-weight: bold;
    font-size: 25px;
}

.lien1 {
    margin-left: 250px;
}

.lien2 {
    margin-right: 250px;
}

.titre {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.titre img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

/* Sélecteur de langue */
.lang-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid black;
    border-radius: 10px;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 14px;
    background-color: white;
    color: black;
    margin-right: 20px;
}

.lang-selector a {
    text-decoration: none;
    color: black;
}

.lang-selector a:hover {
    text-decoration: underline;
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.lien1, .lien2, .lang-selector {
    display: flex;
    align-items: center;
}

/* SECTION 3 : TITRES ET STRUCTURE DE TEXTE */
h1 {
    padding-left: 20px;
}

.h3, h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.panel.panel-1 h3 {
    text-align: left;
    padding-top: 10px;
    max-width: 800px;
}

h3 {
    font-family: Days, sans-serif;
    font-size: 28px;
    padding-left: 80px;
}

/* SECTION 4 : SECTION DES CRÉATURES */
.creatures-section {
    padding: 80px 40px;
    position: relative;
    z-index: 2;
}

.creatures-section h1 {
    text-align: center;
    margin-bottom: 60px;
}

.creatures-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.creatures-row-2 {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.creature-item {
    flex: 0 1 250px;
    min-width: 200px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.creature-image {
    width: 100%;
    margin-bottom: 15px;
}

.creature-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.creature-pda {
    width: 100%;
    min-height: 180px;
    font-family: Days, sans-serif;
    font-size: 13px;
    color: white;
    background-image: url(../img/pda.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 35px 8px 35px 60px;
    display: flex;
    align-items: center;
    text-align: left;
    line-height: 1.3;
}

.creature-pda strong {
    display: block;
    margin-bottom: 5px;
}

/* SECTION 5 : TABLEAUX ET FORMATS DE LARGEUR */
table {
    width: 100%;
}

.w7 { width: 7%; }
.w17 { width: 17%; }
.w18 { width: 18%; }
.w24 { width: 24%; }

.w24pda {
    width: 24%;
    height: 250px;
    font-family: Days, sans-serif;
    font-size: 15px;
    color: white;
    margin-left: 15px;
    background-image: url(../img/pda.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding-left: 70px;
    padding-right: 10px;
}

table img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* SECTION 6 : PANELS PRINCIPAUX */
h1 {
    font-size: 50px;
    font-family: Days, sans-serif;
    -webkit-text-stroke: 1px lightblue;
}

.panel {
    width: 100%;
    background-size: cover;
    background-position: center center;
    position: relative;
}

/* Panel 1 */
.panel-1 {
    background-image: url(../img/fond.jpeg);
    height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.panel1-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    gap: 40px;
}

.panel1-text {
    flex: 1;
    max-width: 800px;
}

.panel1-image {
    flex-shrink: 0;
}

.panel1-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Panels 2 et 3 */
.panel-2,
.panel-3 {
    min-height: 900px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-2 {
    background-image: url(../img/better-Photoroom.png);
}

.panel-3 {
    background-image: url(../img/essaie.jpeg);
}

.panel-2 .title2 h1,
.panel-3 .title2 h1 {
    text-align: center;
    margin-bottom: 80px;
}

.panel2-2,
.panel2-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 0 40px;
    margin-top: 150px;
}

.panel2-2 {
    flex-direction: row;
}

.panel2-3 {
    flex-direction: row-reverse;
}

.panel2-2 h2,
.panel2-3 h2 {
    font-family: Days, sans-serif;
    font-size: 26px;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    text-align: center;
    margin: 0;
}

/* GIFs dans les panels */
.panel2-2 .gif,
.panel2-3 .gif {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.panel2-2 .gif img,
.panel2-3 .gif img {
    width: 600px;
    max-width: 100%;
    height: auto;
    background-color: white;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 1);
}

/* SECTION 7 : PANEL 4 ET CRÉATURES SUPPLÉMENTAIRES */
.panel-4 {
    background-image: url(../img/abyss.png);
    min-height: 2000px;
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.small-creature img {
    max-width: 60%;
    height: auto;
}

.small-creature.w24pda {
    min-height: 160px;
    font-size: 12px;
    padding-left: 45px;
    padding-right: 8px;
    background-size: contain;
    margin: 0 auto;
}

.creatures-row .creature-image img {
    max-width: 80%;
    height: auto;
}

.w24.small-creature {
    width: 20%;
}

.big-creature.w24pda {
    min-height: 100px;
    font-size: 12px;
    padding-left: 90px;
    padding-right: 8px;
    background-size: contain;
    margin: 0 auto;
}

/* SECTION 8 : TRANSITIONS VISUELLES ENTRE PANELS */
.transition {
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 4, 40, 0) 0%, rgba(0, 4, 40, 1) 50%, rgba(0, 4, 50, 0) 100%);
    position: absolute;
    margin-top: -50px;
    margin-bottom: -50px;
    z-index: 20;
}

.transition2 {
    width: 100%;
    height: 130px;
    background: linear-gradient(to bottom, rgba(173, 216, 230, 0) 0%, rgba(173, 216, 230, 1) 50%, rgba(173, 216, 230, 0) 100%);
    position: absolute;
    margin-top: -62px;
    margin-bottom: -50px;
    z-index: 20;
}

.transition3 {
    width: 100%;
    height: 130px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    margin-top: -50px;
    margin-bottom: -50px;
    z-index: 20;
}

/* SECTION 9 : PIED DE PAGE (FOOTER) */
footer {
    width: 100%;
    background-color: black;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footercontain {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.footercontain img {
    width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.cit {
    font-family: 'Days', sans-serif;
    color: white;
    font-size: 20px;
    font-style: italic;
    margin: 15px 0;
    line-height: 1.4;
}

.achat {
    font-family: 'Days', sans-serif;
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin: 15px 0;
}

.platform-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 10px;
}

.platform-logos img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.platform-logos img:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* SECTION 10 : ADAPTATION TABLETTE (RESPONSIVE DESIGN) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .lien1 {
        margin-left: 50px;
    }

    .lien2 {
        margin-right: 50px;
    }

    .lien1 a, 
    .lien2 a {
        font-size: 22px;
    }

    .panel-1 {
        height: auto;
        min-height: 700px;
        padding: 60px 20px;
    }

    .panel1-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .panel1-text {
        max-width: 100%;
    }

    h3 {
        padding-left: 0;
        text-align: center;
        font-size: 24px;
    }

    .panel-1 h1 {
        text-align: center;
        padding-left: 0;
        font-size: 40px;
    }

    .panel2-2,
    .panel2-3 {
        flex-direction: column;
        margin-top: 80px;
        gap: 30px;
    }

    .panel2-2 h2,
    .panel2-3 h2 {
        font-size: 22px;
        max-width: 100%;
    }

    .panel2-2 .gif img,
    .panel2-3 .gif img {
        width: 500px;
    }

    .w7, .w17, .w18 {
        width: 5%;
    }

    .w24 {
        width: 45%;
    }

    .w24pda {
        width: 45%;
        font-size: 13px;
        padding-left: 50px;
        height: 200px;
    }

    .small-creature.w24pda {
        min-height: 140px;
        font-size: 11px;
    }

    .big-creature.w24pda {
        min-height: 140px;
        font-size: 11px;
        padding-left: 110px;
        padding-right: 70px;
    }

    .footercontain img {
        width: 180px;
    }

    .cit {
        font-size: 18px;
    }

    .achat {
        font-size: 20px;
    }

    .platform-logos {
        gap: 30px;
    }

    .platform-logos img {
        width: 45px;
    }
}
