@import url('https://fonts.googleapis.com/css2?family=Amiri&display=swap');


*{
    margin:0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    text-align: center;
}
body{
    font-family: 'Amiri', serif;
    background: var(--color-bg  );
    color: var(--color-black);
    line-height: 1.7;
    background-color: white;
    padding: 0;
    margin: 0;

}
figcaption{
    color: black;
}


:root {
    --color-bg: #F7F5F2;
    --color-bg-variant: #cacaca;
    
    --color-bg-variant2: #c0c0c0;
    --color-primary: #c8ad7f;
    --color-primary-variant: #606060;
    --color-black: rgb(0, 0, 0);
    --color-light: rgba(255,255,255,0.6);

    --container-width-lg: 75%;
    --container-width-md : 86%;
    --container-width-sm : 90%;

    --transition: all 400ms ease;

}

p{
    margin-bottom: 0;
}

.nobackground{

    background: none;
    background-color: black;
}

.videoShow{
    display: flex;
    flex-direction: column;
    align-items: center;
}

body{
    margin:0;
    padding:0;
    left:0;
    top:0;
    right:0;
    bottom:0;
    text-align: center;
}

html, body { height : 100%; }

::-webkit-scrollbar {
    display: none;
}

.bg-custom{
}

body{
    font-family: 'Amiri', serif;
    background: var(--color-bg  );
    color: var(--color-black);
    line-height: 1.7;
    background-color: white;
    padding: 0;
    margin: 0;
    background: url("./src/assets/SalataljanazaCOM8.png") no-repeat top ;
    -webkit-background-size: cover; /* pour anciens Chrome et Safari */
    background-size: cover; /* version standardisée */

}

/* ===  Style General === */

.container {
    width: var(--container-width-lg);
    margin: 0 auto;

}

h1,h2,h3,h4,h5{
    font-weight: 500;
}

h1{
    font-size: 2.5rem;
}

section {
    margin-top: 8rem;
}

.centerIndex {
    margin-top: -15%;
}

section > h2, section > h5 {
    text-align: center;
    color: var(--color-light);
}

section > h2 {
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.text-light {
    color: var(--color-light);
}

a {
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    color : var(--color-black);
}



.btn {
    width: max-content;
    display: inline-block;
    color : #5e6ab0 ;
    padding: 0.75rem 1.2rem;
    border-radius: 0.4rem;
    cursor: pointer;
    border: 1px solid var(--color-primary);
    transition: var(--transition);
}

.btn:hover {
    background: var(--color-black);
    color: var(--color-bg);
    border-color: transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
}


.text-center {
    text-align: center!important;
}


.p-5custom {
    padding-bottom: 3rem;

}
.mt-4, .my-4 {
    margin-top: 1.5rem!important;
}

.bg-dark {
    background-color: #343a40!important;
}

.p-3 {
    padding: 1rem!important;
}


#myVideo{

    background-color: black;
    background: no-repeat url("./src/assets/videoaccueil.mp4");
    background-position: center center;
    background-size: contain;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.couleur3 {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;

    background-color: #252B60;

    color: white;
    border: 1px solid black;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    cursor: pointer;
}



.couleur3:hover{
    background-color: transparent;
    color: black;

}


.audio {
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

footer label:hover{
    transition: 0.2s;

    opacity: 100%;
}
footer label{
    margin-bottom: 0;
    cursor: pointer;

    opacity: 20%;

    transition: 0.2s;
}

.buttonNextPrev{
    color: black;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    border-radius: 20px;
    border: solid 1px white;
    background: white;
    height: 48px;
}

.buttonNextPrev:hover{
    color: #252B60;
}


.couleur {
    display: inline-block;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;

    background-color: #252B60;

    color: white;
    border: 2px solid black;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    cursor: pointer;
}



.couleur:hover{
    background-color: transparent;
    color: black;

}

.compteur{
    margin-top: 0;
    display: grid;
    grid-template-columns: 33% 33% 33%;
}

.compteurNumber{
    display: flex;
    justify-content: center;

    color: rgb(37, 43, 96);
    font-size: 69px;
    font-weight: bold;
}
.compteurText{
    color: rgb(37, 43, 96);
    font-size: 40px;
    font-weight: bold;
}

.one {
    grid-column: 1 / 3;
    grid-row: 1;
}
.two {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
}
.three {
    grid-column: 1;
    grid-row: 2 / 5;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

input[type=text] {
    padding: 12px 20px;
    margin: 9px 0;
    box-sizing: border-box;
    border-radius: 10px;
    outline: none;
    height: 20%;
    border: 1px solid #7c7b7b;
}

footer {
    font-size: .9rem;
    margin-top: 7rem;
    text-align: center;color: white;

}

small {
    color: black;
}

footer a {
    color: black;
}

.underlined{
    height: 100%;
}

.footer__logo {
    display: inline-block;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: black;
}

footer a:hover {
    color: #007bff;
    transition: 0.7s;
    transform: scale(1.1);
}
.footer__copyright {
    color: black;
}
.permalinks {
    display: flex;
    justify-content: center;

    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 auto 3rem;
}


.cookie-alert {
    position: fixed;
    bottom: 20px;
    right:20px;
    border-radius: 10px;
    background:#2f2f2f;
    color:#fff;
    padding:10px 15px;
    width:280px;
    z-index:100;
}
.cookie-alert a {
display:block;
    text-align: center;
    padding:5px 10px;
    margin:8px auto 0 auto;
    border-radius: 10px;
    background:transparent;
    border: 2px solid #46A2D9;
    color:#46A2D9;
    transition: all .3s ease;
}
.cookie-alert a:hover {
    background: #46A2D9;
    color:#2f2f2f;
}

#myVideo {
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1000;
    width: 100%;
    height: 100vh;
    object-fit: fill;
}

#mavideo {
    width: 100%;
    max-height: 100%;
}


video {
    background-color:  black;
    background: no-repeat url("./src/assets/videoaccueil.mp4");
    background-position: center center;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}



.carousel-caption .couleur{
    background-color: white;
    color: black;
    padding: 5px;
}

.carousel-item{
    transition: transform 0.5s ease,-webkit-transform 0.5s ease;
}


.videoP{
    margin-top: 1rem;
    margin-bottom: 0;
}

.about__cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.about__card {
    background: white ;



    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.about__card h5 {
    font-size: 30px;
    font-weight: bold;
    color: rgb(37, 43, 96);;
}

.about__card small {
    color: var(--color-light);
    font-size: .7rem;
}
/*Loader

.loader {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top:0;
    right:0;
    bottom:0;
    left:0;
    z-index: 9999;
}
.lettre {
    color: #484848;
    font-size: 80px;
    letter-spacing: 15px;
    margin-bottom: 150px;
    animation: flash 1.2s linear infinite;
}
@keyframes flash {
    0% {
        color: #2a2d65;
        text-shadow: 0 0 7px #2a2d65;
    }
    90% {
        color: #484848;
        text-shadow: none;
    }
    100% {
        color: #2a2d65;
        text-shadow: 0 0 7px #2a2d65;
    }
}

.lettre:nth-child(1){
    animation-delay: 0.1s;
}
.lettre:nth-child(2){
    animation-delay: 0.2s;
}
.lettre:nth-child(3){
    animation-delay: 0.3s;
}
.lettre:nth-child(4){
    animation-delay: 0.4s;
}
.lettre:nth-child(5){
    animation-delay: 0.5s;
}
.lettre:nth-child(6){
    animation-delay: 0.6s;
}
.lettre:nth-child(7){
    animation-delay: 0.7s;
}
.lettre:nth-child(8){
    animation-delay: 0.8s;
}
.lettre:nth-child(9){
    animation-delay: 0.9s;
}
.lettre:nth-child(10){
    animation-delay: 1s;
}

.fondu-out {
    opacity: 0;
    transition: opacity 0.4s ease-out;
    z-index: -1;
}
*/

@media only screen and (max-width:480px) {
    .cookie-alert {
        text-align: center;
        left: 0; right: 0;
        margin: 0 auto;
        max-width:700px;
        padding:10px 30px;
    }
    #mavideo{
        width: 400px;
    }

    .lettre {
        font-size: 20px;
        letter-spacing: 5px;
    }
}


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

    .memberCompt{
        margin-right: 10px;
    }

    body{
        background: url("./src/assets/SalataljanazaCOM8.png") no-repeat top;

        background-size: 1080px;
    }
}

/* === MediaQuery (Small Devices)=== */

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

    body{
        background: url("./src/assets/SalataljanazaCOM8.png") no-repeat top;

        background-size: 1080px;
    }
    .lettre {
        font-size: 20px;
        letter-spacing: 5px;
    }
    
    .carousel-caption .couleur {
        
        width: 92%;
        padding: 1px;
    }

    p {
        margin-bottom: 0;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    .navi form input {
        font-size: 1.1rem;
    }

    *{
        box-sizing: border-box;
    }
    .container {
        width: var(--container-width-sm);
    }


    
    section > h2{
        margin-bottom: 2rem;
    }

    .compteurNumber, .compteurText{
        font-size: 1.5rem;
    }

    .text-black{
        font-size: 1rem;
    }

    .inputNewsletter{
        width: 60%;
    }
    section {
        margin-top: 1.5rem;
    }
    /* passer body (et tous les éléments de largeur fixe) en largeur automatique */

    body {
        width: auto;
        margin: 0;
        padding: 0;
    }

    /* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */

    img,
    table,
    td,
    blockquote,
    code,
    pre,
    textarea,
    input,
    iframe,
    object,
    embed,
    video {
        max-width: 100%;
    }

    /* conserver le ratio des images */

    img {
        height: auto;
    }

    /* gestion des mots longs */

    textarea,
    table,
    td,
    th,
    code,
    pre,
    samp {
        -webkit-hyphens: auto; /* césure propre */
        -moz-hyphens: auto;
        hyphens: auto;
        word-wrap: break-word; /* passage à la ligne forcé */
    }

    code,
    pre,
    samp {
        white-space: pre-wrap; /* passage à la ligne spécifique pour les éléments à châsse fixe */
    }

    /* Passer à une seule colonne (à appliquer aux éléments multi-colonnes) */

    .element1,
    .element2 {
        float: none;
        width: auto;
    }

    /* masquer/afficher les éléments  */

    .u-mobile {          display: block;          display: revert !important; /* affichage des éléments */        }        .u-no-mobile {          display: none !important; /* masquage des éléments */        }

    /* Un message personnalisé */

    body:before {
        content: "Version mobile du site";
        display: block;
        text-align: center;
        font-style: italic;
        color:
                #777;
    }
}


button:active {
    transform: scale(0.95);
}

button:focus {
    outline: none;
}

button.ghost {
    background-color: transparent;
    border-color: #5e6ab0  ;
}