h1, h2, h3, h4, h5{
    font-family: Helvetica, Arial, sans-serif !important;
}

.croix{
    /margin-top: -0.4rem !important;
    margin-bottom: 0.2rem !important;
    text-align: center;
}

.button{
    letter-spacing: 0.05rem;
}

/*-----Accroche full screen-----*/
.accroche {
    background: url("../img/Quanto_le_jeu.jpg") no-repeat center center;
    background-size: cover;
    height: 100vh; 
}
.accroche .intro {
    position: relative;
    top: 30%;
    /transform: translateY(-50%); 
}
.accroche h1 {
    text-align: left; 
}
.accroche h2 {
    padding: 0.6rem 0 0.6rem;
    color: #000;
    font-size: 1.75rem;
    font-weight: 200;
    text-align: left;
}
.accroche .nav {
    text-align: left;
}

.bleu{/*CTA achat dans l'accroche*/
    border-width: 2px;
    border-radius: 8px !important;
    border-color: #009ee3 !important;
    font-family: Arial, helvetica !important;
    font-size: 1.1rem !important;
    background-color:#009ee3;
    padding: 1rem 2.35rem !important;
    
}

.transparent{/*CTA infos dans l'accroche*/
    border-width: 2px;
    border-radius: 8px !important;
    border-color: #fff !important;
    font-family: Arial, helvetica !important;
    font-size: 1.1rem !important;
    background-color: transparent;
    padding: 1rem 3rem !important;
}

.transparent:hover, .transparent:link, .transparent:visited, .transparent:active{
    background-color: transparent;
    color:#ededed;
}

.fleche{
    position: absolute;
    opacity: 0.7;
    bottom: 0.5rem;
    left: 50%;
    
}

/*-----Section de présentation-----*/
p {
    font-family: Georgia !important;
    font-size: 1.05rem !important;
    color: #575756 !important;
    
}

h3{
    font-size: 2.35rem !important;
    color: #333333 !important;
    font-weight: 600 !important;
    padding:3rem 0 2rem 0;
}

h4{
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    color: #333333 !important;
}

.textgauche p{
    padding-bottom: 2rem;
}

.titrecyan{
    color:#009ce1 !important;
}

.titremagenta{
    color:#e3007d !important;
}

.titrevert{
    color:#00973e !important;
}
.image-droite{
    padding-bottom: 1.5rem;
    text-align: center;
}

.image-droite img{
    padding-bottom: 1.5rem;
}


/*-----Section des variantes de jeu-----*/
.conteneurVariante{/*section qui propose les variantes de jeu || pour permettre le centrage vertical*/
    text-align: center;
}

.variante{
    padding: 2rem 0 4rem;
}

/*-----Animation des disque en flip horizontal-----*/
.elem {
    display: inline-block;
    font-family: Helvetica, Arial, sans-serif;
    height: 18rem;
}
.elem h5 {
    font-size: 1.2rem !important;
    color: #333333 !important;
    padding-top:0.5rem;
}
.elem h5:after {
    content: '';
    display: block;
    background: #999999;
    width: 100px;
    height: 3px;
    margin: 0.5rem auto 1rem;
}
.elem p {
    line-height: 1.2rem;
}
.flip {
    -webkit-perspective: 800;
    -moz-perspective: 800;
    perspective: 800;
    width: 130px;
    height: 130px;
    position: relative;
    margin: 1rem auto 2rem;
}
.flip .card.flipped {
    -webkit-transform: rotatey(-180deg);
    -moz-transform: rotatey(-180deg);
    transform: rotatey(-180deg);
}
.flip .card {
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    transition: 0.5s;
}
.flip .card .face {
    width: 100%;
    height: 100%;
    position: absolute;
    -webkit-backface-visibility: hidden ;
    -moz-backface-visibility: hidden ;
    backface-visibility: hidden ;
    z-index: 2;
    font-family: Georgia;
    font-size: 1em;
    text-align: center;
    line-height: 130px;
    border-radius: 200px;
    cursor: default;
}
.flip .card .front {
    position: absolute;
    z-index: 1;
    /background: #19BEC0;
    /color: white;
}
.flip .card .back {
    -webkit-transform: rotatey(-180deg);
    -moz-transform: rotatey(-180deg);
    transform: rotatey(-180deg);
    background: #FFFFFF;
    /color: white;
    cursor: default;
}


/*-----Section du filtre rouge-----*/
.subtitle{
    font-size: 1.2rem !important;
    color: #333333 !important;
    padding:1rem;
    text-align: center;
}

.cartesRecto{
    text-align: center;
}

.cartesVerso {
    text-align: center;
    position: relative;
    display: block;
    isolation: auto !important; /* Autorise le mélange des couches enfants */
}

.cartesRecto p, .cartesVerso p {
    padding: 1rem 0 4rem 0;
}

.shadow {
    border: 1px #000000 solid;
    border-radius: 14px;
    box-shadow: -1px 2px 5px 1px rgba(0, 0, 0, 0.7); 
}

#cartes {
    display: inline-block;
    z-index: 1; /* On baisse le réceptacle */
    position: relative;
}

#verso {
    z-index: 1;
}

#filtre {
/* Ajoute 2px (1 de chaque côté) pour être sûr de couvrir la carte */
    width: 214px !important;  /* Au lieu de 212px */
    height: 286px !important; /* Au lieu de 284px */
    
    /* Assure-toi que la bordure ne réduit pas la taille intérieure */
    box-sizing: border-box;
    z-index: 999 !important; /* On met le filtre au premier plan */
    background-color: #ff0000;
    mix-blend-mode: multiply;
    opacity: 1 !important;
    position: absolute;
    display: none;
    visibility: hidden;
    pointer-events: none; /* TRÈS IMPORTANT : évite que le filtre ne bloque la souris */
    
        /* ... tes autres styles (z-index, mix-blend-mode, etc.) ... */
    
    border-radius: 14px; /* Calqué sur ta classe .shadow */
    overflow: hidden;    /* Force le contenu à rester dans les arrondis */
    
    /* Optionnel : si ton filtre est une div avec une couleur de fond, 
       ajoute une bordure fine pour simuler l'épaisseur de la carte magique */
    border: 1px solid rgba(0,0,0,0.1);
}

/*-----Section pour le CTA-----*/
.darkgrey {
    background-color: #A9A8A5; 
    text-align: center;
}

.txtCTA{
    padding: 1rem 0;
}

.txtCTA a{
    color:white;
    font-style: italic;
}

.txtCTA a:hover{
    color:#009ee3;
    text-decoration: underline;
}

.txtCTA h5 {
    color:#f5f5f5;
    font-size: 1.2rem !important;
    letter-spacing: 0.05rem;
}

.txtCTA p {
    color:#f5f5f5 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.03rem;
    padding-top: 0.5rem;
}

.CTA{
    padding-top: 0.5rem;
}

/*-----Section du footer-----*/
.footer p {
 font-size: 0.9rem !important; /* Taille plus confortable */
    color: #575756;
    padding-top: 1rem;
}
.footer img {
    padding:0 0.7rem
}

.footer a {
    font-size: 0.9rem !important; /* Pour que les liens suivent aussi */
    color: #575756;}

.footer a:hover{
    color:#009ee3;
    text-decoration: underline;
}

.aligner {
    text-align: right;
}

.grey{
    background-color:#ededed;
}

.aligner a:hover{
    opacity: 0.65;
}

/* --------------- media queries --------------- */

/* --- Smartphone basé sur l'iPhone 5 and 5S (www.css-tricks.com/snippets/css/media-queries-for-standard-devices/)--- */

/* Commun */
@media only screen 
    and (min-device-width: 320px)
    and (max-device-width: 760px){
        
    .transparent{
        display: none;
    }
    .aligner, .footer p {
        text-align: center;
    }
    
    .cartes p {
        font-size: 0.6rem !important; 
    }
    .accroche {
        background: url("../img/Quanto_le_jeu_mobile.jpg") no-repeat center center;
        background-size: cover;
        height: 100vh; 
    } 
    .accroche h1 {
        text-align: center;
    }
    .accroche h2 {
        text-align: center;
        font-size: 1.5rem;
    } 
    .accroche .nav {
        text-align: center;
    }
    .fleche{
        display: none;
    }
    h3{
        font-size: 1.7rem !important;
        padding:2.5rem 0 1.5rem 0;
    }
    h4{
        font-size: 1.4rem !important;
    }
    p {
        font-size: 0.95rem !important;

    }
    .bleu{/*CTA achat dans l'accroche*/
        font-size: 0.9rem !important;
        padding: 0.7rem 1.75rem !important;
    }
}


/* Portrait */
@media only screen 
    and (min-device-width: 320px)
    and (max-device-width: 760px) 
    and (orientation: portrait) {

    .accroche .intro {
        top: 20%;
    }
    
    .image-droite img{
        width: 80%;
    }
    #filtre{
        height: 284px;
    }
    
}

/* Landscape */
@media only screen 
    and (min-device-width: 320px)
    and (max-device-width: 760px)
    and (orientation: landscape) {
    
    .accroche .intro {
        top: 0%;
    }
    .image-droite img{
        width: 55%;
    }
    #filtre{
        height: 284px;
    }
    .accroche h2 {
        padding: 0rem;
    }
        
}

/* --- Tablette basé sur l'iPad Mini (www.css-tricks.com/snippets/css/media-queries-for-standard-devices/)--- */

/* Commun */
@media only screen 
    and (min-device-width: 768px)
    and (max-device-width: 1024px){
    .accroche h2 {
        font-size: 1.7rem;
    } 
    h3{
        font-size: 1.8rem !important;
        padding:2.5rem 0 1.5rem 0;
    }
    h4{
        font-size: 1.5rem !important;
    }
    p {
        font-size: 1rem !important;

    } 
    .cartes p {
        font-size: 0.7rem !important; 
    }
    .fleche{
        display: none;
    }
        
}
/* Portrait */
@media only screen 
    and (min-device-width: 768px)
    and (max-device-width: 1024px) 
    and (orientation: portrait) {
    .accroche .intro {
        top: 35%;
    }
    .image-droite img{
        /width: 55%;
    }
        
        
}
/* Landscape */
@media only screen 
    and (min-device-width: 768px)
    and (max-device-width: 1024px) 
    and (orientation: landscape) {   
    .accroche .intro {
        top: 25%;
    }      
    
    
}