/* Style principal du header */

header .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: black;
    font-family: "Edwardian Script ITC";
    animation: slide-in 1s ease-out;
}


/* Cache les images avec la classe "suit" par défaut */
img.suit {
    display: none; /* Empêche l'affichage initial */
}

/* Positionne les images dans des zones spécifiques de la grille */
.brand img.coeur {
    grid-area: coeur; /* Définit la zone de la grille pour "coeur" */
}
.brand img.pique {
    grid-area: pique; /* Définit la zone de la grille pour "pique" */
}
.brand img.carreau {
    grid-area: carreau; /* Définit la zone de la grille pour "carreau" */
}
.brand img.trefle {
    grid-area: trefle; /* Définit la zone de la grille pour "trefle" */
}
/* Dimensions spécifiques pour le logo principal */
.brand img.logo {
    max-width: 22vw; /* Limite la largeur à 22% de la fenêtre */
    max-height: 73px; /* Limite la hauteur maximale à 73 pixels */
    grid-area: logo; /* Positionne l'image du logo dans la grille */
}

/* Style du titre principal de la marque */
.brand h1 {
    font-size: 40px; /* Taille de police pour le titre principal */
    margin: 0; /* Supprime les marges par défaut */
    text-align: center; /* Centre le texte horizontalement */
}

/* Style du sous-titre de la marque */
.brand h2 {
    font-size: 35px; /* Taille de police pour le sous-titre */
    margin: 2px; /* Ajoute un léger espacement vertical */
    text-align: center; /* Centre le texte horizontalement */
}

@media screen and (min-width:600px) {
    header .brand {
        display: grid;
        grid-template-areas: "trefle . coeur logo pique . carreau";
        justify-items: center;
        padding-bottom:10px ;
    }
    .brand img.logo {
        width: 90px;
        max-width: unset;
        max-height: unset;
        margin: 0;
    }
    img.suit {
        height: 50px;
        display: unset;
    }
}
@keyframes slide-in {
    0% {
        transform: translate(-1000%, 0);
    }
    100% {
        transform: translate(0, 0);
    }
}
/* menu */
header {
    display: inline;
}
nav li {
    list-style:none;
}
nav ul {
    padding: 0;
    margin: 0;
}
/* Version mobile */
@media screen and (max-width:599px) {
    nav {
        position: fixed;
        top: 0;
        width: 100vw;
        height: 100vh;
        transition: transform 0.2s ease;
        z-index: 1;
        font-size: 16px;
        background-color: #fff;
        overflow: auto;
    }
    nav.hidden {
        transform: translate(-100%, 0);
    }
    nav > ul {
        height: 100%;
        padding: 10px 0 20px 20vw;
    }

    #menu-hamburger {
        position: fixed;
        bottom: 20vw;
        right: 3vw;
        padding: 2px;
        z-index: 2;
        cursor: pointer;
        font-weight: bolder;
        font-size: 40px;
        width: 50px;
        height: 50px;
        background-color: #7a0012;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 12px;
    }

    nav a, nav span {
        text-decoration: none;
        display: block;
        padding: 2px;
        transition: background-color 0.5s ease;
    }
    nav a {
        color: #7a0012;
    }
    nav span, nav > ul > li > a {
        font-weight: bold;
        font-size: 20px;
        padding-top: 10px;
    }
    nav a.active {
        color: #c80000;
    }
}
/* Version desktop */
@media screen and (min-width:600px) {
    #menu-hamburger {
        display: none;
    }
    nav {
        position: sticky;
        top: 0;
        background-color: white;
        z-index: 1;
    }
    nav > ul {
        display: flex;
        align-items: end;
        justify-content: stretch;
    }
    nav > ul > li {
        flex-grow: 1;
    }
    nav > ul > li > a, nav > ul > li > span {
        text-align: center;
    }
    nav ul ul {
        display: none;
        position: absolute;
        background-color: #a7726bcf;
        left: 50%;
        translate: -50%;
        min-width: 100%;
    }
    nav a, nav span {
        text-decoration: none;
        display: block;
        padding-top: 10px;
        padding-bottom: 5px;
        color: #7a0012 ;
        font-size: 16px;
        transition: all 0.5s ease;
        border-bottom: 2px solid #c80000;
    }
    nav ul ul a {
        text-align: center;
        border: none;
        min-width: max-content;
        color: white;
        width: auto;
    }
    nav a:hover, nav span:hover {
        background-color: rgba(12, 12, 12, 0.727);
        color: white;
    }
    nav > ul > li {
        position: relative;
    }
    nav > ul > li:hover ul {
        display: block;
    }
}

