@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
    --primary-color: #FFBF46;
    --secondary-color: #000000;
    --third-color: #FFFFFF;
    --background-color: #5E6418;
    --mada-color: #98432F;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Josefin Sans', sans-serif;
}

h1 {
    color: var(--primary-color);
    font-size: 4em;
    font-weight: 500;    
}

h2, h3 {
    color: var(--secondary-color);
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 0;
}

hr {
    border: none;
    border-top: 2px solid var(--secondary-color); 
    width: 60%; 
    margin: 20 auto; 
}



/* En tête */
header {
    height: auto;
    padding: 5px 0;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
}

#header {
    display: none; /* Commence caché */
    position: fixed; /* Position fixe pour qu'il reste en haut */
    width: 100%; /* Prend toute la largeur */
    z-index: 1000; /* Assure qu'il est au-dessus des autres éléments */
}

header ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

header li {
    margin-left: 35px;
}

a {
    text-decoration: none;
}

header a {
    color: var(--secondary-color);
    font-style: italic;
    font-size: 2.5em;
}

header a:hover {
    color: var(--primary-color);
    font-weight: 600;
}

/* Section bienvenue */
.bienvenue {
    padding: 80px 20px 160px 20px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("images/paysage 3.jpeg");
    background-position: center;
    background-size: cover;
    text-align: center;
}

.intro {
    max-width: 800px;
    color: var(--third-color);
    font-size: 1.2em;
    text-align: justify;
    margin: 20px auto;
}

/* Section articles */
.articles {
    background-color: var(--background-color);
    padding-top: 125px;
    width: 100%;
    text-align: center;
}

article {
    width: 360px;
}

article img {
    border-radius: 20px;
    margin-top: 80px;
}

.img1:hover {
    cursor: zoom-in;
    transition: 2s;
    transform: scale(2);
}

article p {
    text-align: justify;
    color: var(--third-color);
    margin-bottom: 60px;
}

.btn-small-1 {
    background-color: var(--secondary-color);
    color: var(--third-color);
    padding: 8px 16px;
    font-size: 0.8em;
    border-radius: 10px;
    border: none;
}

.btn-small-1:hover {
    background-color: #333;
}

/* Section pays */
.pays {
    padding: 80px 10px;
    text-align: center;
    background-color: var(--mada-color);
}

.col {
    width: 100%;
    margin: 10px 0;
    text-align: center;
}

.col img {
    max-width: 100%;
}

.pays p {
    color: var(--third-color);
    font-size: 1em;
    text-align: justify;
    padding-right: 20px;
}

strong, b {
    color: var(--secondary-color);
}

/* Section contact */
.contact {
    padding: 120px 20px 80px 20px;
    background-image: url("images/Merzouga 5.jpeg"); 
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.contact .img {
    box-shadow: 10px 10px 5px var(--primary-color);
    margin-bottom: 80px;
}

form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 30px;
}

input {
    width: 45%;
    height: 30px;
    border: 1px solid #808080;
    margin-bottom: 20px;
    border-radius: 5px;
    padding-left: 10px;
    color: var(--primary-color);
}

textarea {
    width: 100%;
    border: 1px solid #808080;
    border-radius: 5px;
    padding-left: 10px;
    color: var(--primary-color);
}

input[placeholder], textarea[placeholder] {
    font-family: 'Lato', sans-serif;
    font-size: 1.2em;
    background-color: var(--secondary-color);
}

form p {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

button {
    cursor: pointer;
}

.btn-small-2 {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    font-size: 0.8em;
    border-radius: 10px;
    border: none;
}

/* Section diaporama */
.diaporama {
    background-color: var(--mada-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;  
}

.carousel {
    position: relative;
    width: 1024px;
    height: 768px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
}

.carousel img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #333;
}

/* Pied de page */
footer {
    background-color: var(--background-color);
    width: 100%;
}

.footer {
    margin-top: 80px;
    border: 2px solid var(--primary-color);
    width: 100%;
}

.col-30 {
    width: 30%;
    text-align: center;
}

footer img {
    padding: 10px;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer ul li {
    margin-top: 15px;
}

a {
    color: var(--third-color);
    text-decoration: none;
}

.social {
    justify-content: space-evenly;
}

.social .icon {
    height: 36px;
    margin-right: 20px;
}

.copyright {
    color: var(--secondary-color);
    text-align: center;
    margin: 10px;
}

footer .container {
    display: flex;
    justify-content: center;
    padding: 0;
}

/* Media Queries pour rendre le design responsive */
@media screen and (min-width: 1025px) {
    .col {
        width: 50%;
    }

    .col2 {
        width: 33.33%;
    }

    .container {
        display: flex;
    }

    article {
        width: 360px;
    }
}

@media screen and (max-width: 1024px) {
    .bienvenue, .articles, .pays, .contact {
        padding: 40px 10px;
    }

    .articles {
        padding: 40px 0;
    }

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

    header {
        padding: 2px 0; /* Réduit le padding du header */
        border: 1px solid #FFBF46; /* Réduit la bordure si nécessaire */
    }
        
    header ul {
        flex-direction: column; /* Aligne les éléments du header en colonne */
        align-items: center; /* Centre les éléments horizontalement */
    }

    header li {
        margin: 5px 0; /* Réduit l'espacement vertical entre les éléments */
    }

    header a {
        font-size: 1.5em; /* Réduit la taille de la police */
        line-height: 1.2; /* Ajuste l'espacement entre les lignes */
        text-align: center; /* Centre le texte */
    }

    h1 {
        font-size: 2.5em; /* Réduit la taille du h1 */
    }

    h2 {
        font-size: 1.8em; /* Réduit la taille du h2 */
    }

    .col {
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    .col img {
        width: 90%;
        margin: 0 auto;
    }

    article {
        width: 90%;
        margin: 10px auto;
    }
}
