@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #333;
    color: white;
    line-height: 1.6;
    margin-left: 30px;
    margin-right: 30px;
}


header {
    display: flex;
    justify-content: space-between;
    background-color: #333;
    border: solid 2px aqua;
    align-items: center;
    padding: 10px;
    border-radius: 15px;
}

nav a {
    text-decoration: none;
    padding: 20px;
    margin-top: 20px;
    color: aqua;
}

nav a:hover {
    color: red;
}

h4 {
    margin-bottom: 10px;
    display: flex;
}


header img {
    width: 150px;
}

section.tete {
    display: flex;
    justify-content: space-between;
}

section.tete div {
    margin-top: 80px;
}

section.tete img {
    width: 300px;
    height: 100%;
    border: 3px solid transparent;
    background: 
    linear-gradient(#333, #333)padding-box,
    linear-gradient(aqua, red)border-box;
    margin-right: 100px;
    margin-top: 30px;
    border-radius: 50px;
    object-fit: cover;
}

section.tete h2 {
    color: aqua;
    margin: 0%;
}

.titre {
    display: flex;
    margin-top: 10px;
    justify-content: center;
    margin-bottom: 0px;
}

.tec {
    color: aqua;
    margin-left: 7px;
}
h6 {
    opacity: 0.5;
    margin: 0px;
}

th h4{
    color: red;
    margin: 0px;
}

th p {
    font-size: 12px;
    text-align: left;
}
table {
    margin-top: 20px;
    padding: 5px;
    overflow-x: auto;
}
tr {
    padding: 10px;
}

th {
    border: 2px solid transparent;
    background: 
    linear-gradient(#333, #333)padding-box,
    linear-gradient(aqua, red)border-box;
    border-radius: 30px;
    padding: 10px;
    width: 210px;
    vertical-align: top;
}

li {
    font-size: 12px;
    text-align: left;
    margin-left: 10px;
}

th img {
    width: 200px;
    height: auto;
} 

.voir {
    background: white;
    font-weight: 600;
    width: 100px;
    padding-top: 7px;
    height: 40px;
    border-radius: 10px;
}

.voir a {
    text-decoration: none;
    color: red;
}

h4 img {
    width: 60px;
    height: 50px;
}

.demi h2 {
    color: aqua;
}

.demi {
    display: flex;
    justify-content: space-between;
    
}

.loca {
    display: flex;
    background: rgb(95, 95, 95);
    width: 400px;
    text-align: left;
    padding-top: 7px;
    border-radius: 15px;
    margin-top: 20px;
}

.loca img {
    margin-left: 5px;
    margin-right: 5px;
    
}

main {
    text-align: center;
}

input {
    width: 300px;
    height: 55px;
    font-size: 18px;
    margin-bottom: 23px;
    border-radius: 15px;
    background: rgb(95, 95, 95);
    color: white;
}
textarea {
    width: 600px;
    height: 80px    ;
    font-size: 18px;
    border-radius: 15px;
    padding: 5px;
    background: rgb(95, 95, 95);
    color: white;
}

button {
    background-color: aqua;
    color: white;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    border-radius: 10px;
    margin-top: 10px;
}

footer {
    display: flex;
    justify-content: space-between;
    background-color: #333;
    border: solid 2px aqua;
    align-items: center;
    padding: 10px;
    border-radius: 15px;
    margin-top: 20px;
}

footer div img {
    width: 30px;
}

/* ===== ANIMATION SCROLL ===== */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE TABLETTE ===== */
@media (max-width: 1024px) {

    section.tete {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    section.tete img {
        margin: 20px 0;
        width: 250px;
    }

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

    textarea {
        width: 100%;
    }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 600px) {

    body {
        margin: 10px;
    }

    nav a {
        display: block;
        padding: 10px;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    th {
        min-width: 250px;
    }

    input {
        width: 100%;
    }

    textarea {
        width: 100%;
    }

    section.tete div {
        margin-top: 30px;
    }
}

/* ===== RESPONSIVE TABLE SANS SCROLL ===== */
@media (max-width: 900px) {

    table.fade {
        display: block;
        width: 100%;
    }

    table.fade tr {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    table.fade th {
        width: 100%;
        display: block;
    }
}

/* @media (max-width: 600px) {

    table.fade tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    table.fade th {
        width: 100%;
    }
} */

/* ===== HAMBURGER ===== */

.menu-toggle{
    display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px){

    body{
        margin: 10px;
    }

    header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        position: relative;
        z-index: 1000;
    }

    header img{
        width: 100px;
    }

    /* bouton hamburger */
    .menu-toggle{
        display: flex;
        justify-content: center;
        align-items: center;

        width: 45px;
        height: 45px;

        font-size: 28px;
        color: aqua;

        cursor: pointer;
    }

    /* menu caché */
    nav{
        display: none;
        flex-direction: column;

        position: absolute;
        top: 75px;
        left: 0;

        width: 100%;

        background: #222;

        border: 2px solid aqua;
        border-radius: 15px;

        padding: 10px 0;
    }

    /* menu visible */
    nav.active{
        display: flex;
    }

    nav a{
        padding: 15px;
        margin: 0;
        text-align: center;
    }

    table{
        display: block;
        overflow-x: auto;
    }

    th{
        min-width: 250px;
    }

    input,
    textarea{
        width: 100%;
    }

    section.tete div{
        margin-top: 30px;
    }
}

.animation {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 80px;
}

/* Défilement fluide */
.animation1 {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

/* Bloc (logo + texte) */
.sary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 60px;
}

/* Logo */
.sary img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Texte */
.text {
    font-size: 1.6rem;
    color: aqua;
    font-weight: 600;
}

/* Animation infinie sans coupure */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
