@charset "utf-8";

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/*------------------------------BODY-----------------------------------*/
body {
    margin: auto;
    padding: 0;
    background-color: #fef0e7;
    max-width: 1080px;
}

/*faire disparaitre la scroll barre*/
body::-webkit-scrollbar {
    display: none;
}

main {
    max-width: 1030px;
    margin: 0 auto;
    padding-top: 20px;
    font-family: Litera, sans-serif;
}

h1 {
    font-family: 'Cookie', cursive;
    font-weight: normal;
    font-size: 50px;
}

.title {
    text-align: center;
    color: #662e16;
}

/*----------------------------HEADER-----------------------------------*/
header {
    background: linear-gradient(135deg, #f4bf9c, #f4bf9c, #f1aa70);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/*La barre de navigation*/
header nav ul {
    list-style: none;
    margin: 0;
    margin-right: 60px;
    padding: 0;
    display: flex;
    font-size: 16px;
}

nav a {
    text-decoration: none;
    color: #73371d;
    position: relative;
    margin: 15px;
    font-size: large;
}

.active {
    text-decoration: underline 2px;
}

nav a:hover {
    text-decoration: underline 2px;
}


/*Le logo*/
.logo {
    display: flex;
    align-items: center;
    margin: 0;
    height: 60px;
}

.text-logo {
    font-family: 'Cookie', cursive;
    font-size: 100px;
}

.img-logo {
    margin: 0 0 0 50px;
    padding: 0;
    width: 100px;
}

/*texte de devant*/
.dashed-shadow::after {
    z-index: 2;
    content: attr(data-text);
    position: absolute;
    left: -5px;
    top: -5px;
    color: #8b4426;
    text-shadow: 2px 2px #f4bf9c;
}

/*ombre du texte, en forme de ligne*/
.dashed-shadow:before {
    content: " ";
    display: block;
    position: absolute;
    top: 2px;
    left: -8px;
    bottom: 20px;
    right: -6px;
    z-index: 1;
    background-image: linear-gradient(45deg,
            #f4bf9c 12.5%,
            rgba(232, 227, 199, 0) 12.5%,
            rgba(232, 227, 199, 0) 37.5%,
            #f4bf9c 37.5%,
            #f4bf9c 62.5%,
            rgba(232, 227, 199, 0) 62.5%,
            rgba(232, 227, 199, 0) 87.5%,
            #f4bf9c 87.5%);
    background-size: 4px 4px;
}

/*ombre du dessous*/
.dashed-shadow {
    position: relative;
    top: 8px;
    left: 8px;
    display: inline-block;
    color: #73371d;
}

/*animation du logo en hover*/
.dashed-shadow:hover::before {
    animation: dash-animation 30s infinite linear;
    background-position: 100% 0;
}

@keyframes dash-animation {
    0% {
        background-position: 0 0
    }

    ;

    100% {
        background-position: 100% 0
    }

    ;
}


/*----------------------PAGE DONNEES-----------------------------------*/
.page-donnees {
    text-align: justify;
    width: 1100px;
    margin: auto;
}

/* Style pour un tableau "cookies" */
.phptableau {
    width: 1000px;
    margin: 50px auto;
}

#myTable {
    width: 1000px;
    margin: auto;
    background-color: #f9f0e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #d2b48c;
    border-radius: 20px;
    overflow: hidden;
    border-collapse: collapse;
}

#myTable th,
#myTable td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #d2b48c;
}

/*en-tête du tableau*/
#myTable thead {
    background-color: #a25737;
    color: white;
    font-weight: bold;
}

/*corps du tableau*/
#myTable tbody tr:nth-child(even) {
    /*alternance des couleurs des lignes*/
    background-color: #f7d9c4;
}

/*couleur au survol de la ligne*/
#myTable tbody tr:hover {
    background-color: #f8be94;
}

/*----------------------PAGE D'ACCUEIL---------------------------------*/
.carousel {
    overflow: hidden;
    display: grid;
    position: relative;
    width: 100%;
    height: 700px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.item {
    width: 200px;
    height: 300px;
    list-style-type: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(255, 255, 255, 0.3) inset;
    transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;

    &:nth-child(1),
    &:nth-child(2) {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        transform: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
    }

    &:nth-child(3) {
        left: 50%;
    }

    &:nth-child(4) {
        left: calc(50% + 220px);
    }

    &:nth-child(5) {
        left: calc(50% + 440px);
    }

    &:nth-child(6) {
        left: calc(50% + 660px);
        opacity: 0;
    }
}

.content {
    width: min(30vw, 400px);
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    font: 400 0.85rem Litera, sans-serif;
    ;
    color: white;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: none;

    & .title2 {
        font-family: 'Litera';
        text-transform: uppercase;
    }

    & .description {
        line-height: 1.7;
        margin: 1rem 0 1.5rem;
        font-size: 0.8rem;
    }

    & button {
        width: fit-content;
        background-color: rgba(0, 0, 0, 0.1);
        color: white;
        border: 2px solid white;
        border-radius: 0.25rem;
        padding: 0.75rem;
        cursor: pointer;
    }
}

.item:nth-of-type(2) .content {
    display: block;
    animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
    0% {
        filter: blur(5px);
        transform: translateY(calc(-50% + 75px));
    }

    100% {
        opacity: 1;
        filter: blur(0);
    }
}

.nav-carousel {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    user-select: none;

    & .btn {
        background-color: rgba(255, 255, 255, 0.5);
        color: rgba(0, 0, 0, 0.7);
        border: 2px solid rgba(0, 0, 0, 0.6);
        margin: 0 0.25rem;
        padding: 0.75rem;
        border-radius: 50%;
        cursor: pointer;

        &:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }
    }
}

.container-histoire {
    width: 80%;
    margin: 50px auto;
    padding: 20px;
    background-color: #f7d9c4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    color: #8b4426;
}
.container-histoire:hover {
    transform: scale(1.05);
}

.container-histoire a{
    color: white;
    text-decoration: none;
}

.container-histoire p {
    font-size: 18px;
    line-height: 1.5;
    transition: color 0.3s;
    text-align: justify;
}
.container-histoire p:hover {
    color:rgb(79, 44, 19);
}

/*----------------------PAGE GALERIE------------------------------*/

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #8b4426a7;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    
}

.gallery-image {
    width: 33%;
    height: 170px;
    margin-bottom: 4px;
    filter: brightness(50%);
    transition: filter 0.2s ease-in-out;
}

.gallery-image:hover {
    filter: brightness(100%);
}

/*----------------------PAGE CONTACT------------------------------*/
.background-contact {
    background:  linear-gradient(#f7d9c4a9, #f7d9c4ac), url("../images/cookies-background.jpg")
        repeat center center fixed;
}

form {
    background-color: #f4bf9cbf;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 300px;
}

#en-tete {
    display: flex;
    justify-content: space-between;
}

input[type="text"] {
    width: 125px;
}

form label,
form p {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    color: #8b4426;
    margin-bottom: 5px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #8b4426;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

form textarea {
    resize: none;
    height: 200px;
}

input[type="submit"], .btn-histoire {
    background-color: #8b4426;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover, .btn-histoire:hover {
    background-color: #A0522D;
}

.radio-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.radio-container input[type="radio"] {
    display: none;
}

.radio-container label {
    position: relative;
    padding: 0 30px;
    margin-bottom: 10px;
    cursor: pointer;
}

.radio-container label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #8b4426;
    background-color: white;
}

.radio-container input[type="radio"]:checked+label:before {
    background-color: #c47f5b;
    border: 2px solid #a05a3b;
}

.alert-message {
    background-color: #ffffff;
    color: #9f0000;
    padding: 10px;
    width: 800px;
    border-radius: 5px;
    border: 2px solid #9f0000;
    margin: 0 auto;
}

/*----------------------PAGE PARTENAIRES-------------------------------*/

#motivation,
#documents {
    text-align: justify;
    background-color: #f7d9c4;
    color: #8b4426;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.membres {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.membres article {
    display: flex;
    margin: 20px;
    width: 800px;
    background-color: #f7d9c4;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.membres article img {
    width: 200px;
    height: 300px;
    border-radius: 10px 0 0 10px;
}

.membres article div {
    padding: 20px;
    text-align: justify;
    color: #8b4426;
}

.membres article a {
    text-decoration: 2px underline;
    color: #8b4426;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.membres article a:hover {
    text-decoration: 2px dashed underline;
}

#documents {
    text-align: center;
    background-color: #f7d9c4;
    color: #8b4426;
}

#documents a {
    text-decoration: 2px underline;
    color: #8b4426;
    font-weight: bold;
    margin: 0 20px;
}

#documents a:hover {
    text-decoration: 2px dashed underline;
}

/*----------------------page Crédits-----------------------------------*/

.container2 {
    width: 80%;
    text-align: center;
    color: #5a3e1b;
    margin: 10px auto;
    padding: 20px;
    background: #f7d9c4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.container2 ul {
    list-style: none;
    padding: 0;
}

.container2 li {
    font-size: 18px;
    margin: 10px 0;
}

.container2 a {
    color: #d2691e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/*----------------------FOOTER-----------------------------------*/
footer {
    background-color: #f7d9c4;
    padding: 10px 20px;
    text-align: center;
    color: #8b4426;
    border-top: 3px solid #8b4426;
    margin: 0 auto;
}

/* Logo */
.footer-logo {
    font-size: 70px;
    margin: 0;
    font-family: 'Cookie', cursive;
    padding: 10px 0 50px 0;
}

/* Navigation */
footer ul {
    list-style: none;
    padding: 0;
    padding-left: 25px;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

footer a {
    text-decoration: none;
    margin: 0 10px;
}

/* Les réseaux sociaux */
.reseaux-sociaux {
    margin-top: 20px;
}

.social-icon {
    width: 40px;
}

/* Copyright */
.copyright {
    margin-top: 20px;
    font-size: 16px;
}