/* ==============================
   POLICE BITTER LOCALE
============================== */

@font-face {
    font-family: 'Bitter';
    src: url('/css/font_bitter/Bitter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('/css/font_bitter/Bitter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: bold;
    font-display: swap;
}

@font-face {
    font-family: 'Bitter';
    src: url('/css/font_bitter/Bitter-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ==============================
   RESET GLOBAL
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Bitter', serif;
    font-size: clamp(14px, 1.1vw, 16px);
    min-height: 100vh;
    overflow: hidden;
}

p {
    margin-bottom: 10px;
    text-align: justify;
}

/* ==============================
   ZONE PRINCIPALE
============================== */

.partie-scrollable {
    position: fixed;
    top: 70px;
    left: 250px;
    right: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden;
}

.contenu-page {
    flex: 1 0 auto;
    min-width: 0;
    margin: 10px;
}

/* ==============================
   Page d'acceuil
============================== */

.page-acceuil{
    font-size: clamp(16px, 1.4vw, 20px);
}

.page-acceuil p{
    margin-bottom: clamp(15px, 1.5vw, 30px);
}

/* ==============================
   Page fabrication
============================== */

.fabrication-liste-jeux {
    white-space: pre-line;
}

.fabrication-collone-jeux {
    columns: 3;
    column-gap: 40px;
}


/* ==============================
   RUBRIQUES DÉPLIABLES
============================== */





details {
    display: block;
    
}

details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 2.5em;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: "+";
    display: inline-block;
    font-size: inherit;
    line-height: 1;
    transition: transform 0.2s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details > p {
    display: block !important;
    margin-left: 50px !important;
}

/* ==============================
   TITRES
============================== */

h1 {
    position: relative;
    font-family: 'Bitter', serif;
    font-size: clamp(36px, 4vw, 80px);
    font-weight: 400;
    color: #222;
    text-align: center;
    width: 100%;
    margin: clamp(10px, 1.5vw, 20px) 0;
}

h1::after {
    content: "";
    display: block;
    height: clamp(7px, 1.2vw, 15px);
    background-color: #ffda32;
    margin: clamp(8px, 1.2vw, 15px) auto 0;
}

h2 {
    font-family: 'Bitter', serif;
    font-size: clamp(24px, 2vw, 36px);
    font-weight: 400;
    color: #222;
    margin: 10px 0;
    width: 40%;
}


h2::after {
    content: "";
    display: block;
    height: clamp(2px, 0.8vw, 5px);
    background-color: #EEE;
}


h3 {
    font-family: 'Bitter', serif;
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 400;
    color: #777;
    margin: 10px 0;
    text-align: center;

}




h4 {
    font-family: 'Bitter', serif;
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 500;
    color: #666;
    margin: 10px 0;

}


h5 {
    font-family: 'Bitter', serif;
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 500;
    color: #666;
    margin: 5px 0;
}

h5 + p {
    margin: 0;
}

h5 + p::after {
    content: "";
    display: block;
    margin-bottom: 5px;
}

.caracteristiques {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: baseline;
    column-gap: 5px;
}

.caracteristiques h5 {
    text-align: right;
    font-family: 'Bitter', serif;
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 500;
    color: #666;
    margin: 5px 0;
}

.caracteristiques p {
    margin: 5px 0;
}


.fleche-jeu {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    text-decoration: none;
    color: #777;
}

.fleche-jeu.gauche {
    left: 0;
}

.fleche-jeu.droite {
    right: 0;
}

.centrale-fleche{
    width: 60%;
    text-align: center;
    margin: 0 auto;
}

.big-bouton-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
	margin-left : 30px;
    padding: 5px 10px;

    border: none;
    border-radius: 50px;

    font-family: 'Bitter', serif;
    font-size: clamp(14px, 1.1vw, 16px);

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0,0,0,0.25);

}



/* ==============================
   RESPONSIVE
============================== */

@media screen and (max-width: 768px) {

    .partie-scrollable {
        left: 0;
    }

    .contenu-page {
        margin: 10px;
    }

    details summary {
        font-size: clamp(24px, 6vw, 36px);
    }

    h1 {
        font-size: clamp(32px, 8vw, 48px);

    }
    h2 {
    width: 100%;
}
    
}

/* ==============================
   BOUTON IMPRESSION
============================== */

.bouton-imprimer {
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 15px 0;
    font-family: inherit;
}

.bouton-imprimer:hover {
    background: #555;
}

/* ==============================
   ÉLÉMENTS RÉSERVÉS À L'IMPRESSION
============================== */

.only-print {
    display: none;
}

.texte-header-print {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ==============================
   IMPRESSION A4
============================== */

@media print {

    @page {
        size: A4 portrait;
        margin: 15mm;
    }

    html,
    body {
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    body {
        background: white;
    }

    /* Masquer tout le site */

    body * {
        visibility: hidden;
    }

    /* Afficher uniquement la fiche */

    .contenu-page,
    .contenu-page * {
        visibility: visible;
    }

    .partie-scrollable,
    .contenu-page {
        position: static;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        background: white;
    }

    .contenu-page {
        display: block;
    }
    
.centrale-fleche{
    width: 100%;
}

    /* Masquer les éléments inutiles */

    .no-print,
    .contenu-page .no-print {
        display: none !important;
        visibility: hidden !important;
    }

    /* En-tête impression */

    .only-print {
        display: flex !important;
        justify-content: flex-start;
        align-items: center;
        gap: 15px;
        font-size: 11px;
        color: #555;
        border-bottom: 1px solid #999;
        padding-bottom: 0px;
        margin-bottom: 0px;
    }

.only-print p{
       margin:0px;
}

    /* Positionnement du texte après le logo */

    .texte-header-print {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;

        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        flex: 0 1 auto !important;
        margin-bottom: 10px !important;
    }

    /* Rubriques */

    details {
        display: block;
    }

    details summary {
        list-style: none;
    }

    details summary::-webkit-details-marker {
        display: none;
    }

    details summary::after {
        display: none;
    }

    /* Titres */

    h1 {
        font-family: 'Bitter', serif;
        font-size: 48px;
        font-weight: 400;
        color: #222;
        text-align: center;
        line-height: 1.1;
        width: 100%;
        margin: 15px 0;
    }

    h1::after {
        content: "";
        display: block;
        width: 100%;
        height: 12px;
        background-color: #ffda32 !important;
        margin: 15px auto 0;

        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    h2,
    h3 {
        break-after: avoid;
    }

    /* Éviter les coupures */

    p {
        orphans: 3;
        widows: 3;
    }

    p,
    h2,
    h3,
    h4 {
        break-inside: avoid;
    }

    /* Liens */

    a,
    a:link,
    a:visited,
    a:hover,
    a:active {
        text-decoration: none !important;
        color: inherit !important;
        font-weight: inherit !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Supprimer les effets visuels */

    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Conserver les couleurs à l'impression */

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
